In Python, the term monkey patch refers to dynamic (or run-time) modifications of a class or module. In Python, we can actually change the behavior of code at run-time.
print "func() is being called"
We use above module (monk) in below code and change behavior of func() at run-time by assigning different value.
print "monkey_f() is being called"
monk.A.func = monkey_f
obj = monk.A()
Output :monkey_f() is being called