class Scope(object): __shared_state = {} functions = {} def __init__(self): self.__dict__ = self.__shared_state