Port to Python 3

Using 2to3 + 3 fixes
Bump version number to 0.3
Merge branch 'release/0.3' into devel