Fix compatibility with Python 3's string module

Change string.uppercase to string.ascii_uppercase as the former does not exist in Python 3's string module. The strings are identical (in english-speaking locales at least).