when does str.istitle in python returns true