Python3 compatability fixes
Merge pull request #5 from artemyk/python3compat

Python3 compatability fixes