How can I memoize a class instantiation in Python?,self.somevalue = somevalue