a monkey patching example in python