Python Replace Class Method At Runtime