Integrated patch to fix monke-patching on python 3.4.