Port to Python 3

Please release as 0.4