This has something to do with when trying to set the country
Traceback (most recent call last): File "<stdin>", line 1, in <module> , in __init__ self.locale = self.set_locale() , in set_locale if result['iso_3166_2'] == self.country or \ TypeError: string indices must be integers