[Python-ideas] Make __class__ (and maybe other magic variables) visible to functions that was defined outside a class, but then rebound into a class?