class Location:
    name = 'a place'
description = 'A dark place.  there are exits to the North and East'
exits = 'North', 'East'

def __str__(self):
    return '%s\n%s' % (self.name, self.description)


class Player:
    current_location = 'Home'
inventory = ['Blue Key', 'Magic Thumbtacks']
health = 100
name = 'Unknown'

def __init__(self, name):
    self.name = name
player = Player('Player 1')
loc = Location()
print(loc)
x = eval(input('Input:'))
Избегайте использования global, чтобы не сбить с толку новых студентов, изучающих программирование на Python?