module level string functions were eliminated in python 3. Just eliminate the import and use:
my_string_uppercase = my_string.upper()

Read More...