Python 3 support

I have added python3 support. Seems, it works fine on python3