In a python str how to know if characters are uppercase?