class x():
    pass

def f(x): return x
x.hi = f
print x.hi
