How to convert characters to uppercase in a python str?