2to3

also fixed relative import. Seems to pass the self test on Python 2.7 and 3.4