def __getattr__(self, attr): if attr == 'functions': return self.functions else: return Contract.__getattribute__(self.contract, attr)