Change string.uppercase to string.ascii_uppercase to fix compatibility with Python 3 (former has been removed).