Ported to python 3

-Ported to python 3
-Bumped version to 0.4