Python 2.7 support

I have added the compatibility with the Python 2.7.