Port to python3 using 2to3 and som manual changes to __init__.py
to avoid relative imports.