[python] use isupper()