python3: apply 2to3 to tests

* fix test imports from 2to3