[python] How to check if a character is upper-case in Python?