change code for support python 3.4

I needed to use your code in python 3.4.
As brought no changes made to add function in python 3.4