def v7(method_v7):
 frame = currentframe().f_back
 return frame.f_locals.get(method_v7.__name__, method_v7)

def v7 ( method_v7 ) : frame = currentframe ( ) . f_back return frame . f_locals . get ( method_v7 . __name__ , method_v7 )
decorate a method that supports the old-style api only .