def double_dec(cls):
    class Wrapper(cls):
        def __init__(self, val):
            super(Wrapper, self).__init__()
            self.double = 2 * val
    
    return Wrapper

@double_dec
class C(object):
    def __init__(self):
        print ('hello')

tmp = C(4)
print (tmp.double)
