class g: pass # def prefs(self, x): # # note: have different preferences for different users # return self.resources.get("Preferences", "Default").meta[x] # __shared_state = {} # def __init__(self): # print "There is one true G", self # self.__dict__ = self.__shared_state #g = G()