Use consistent relative imports

Fixes the test errors and failures in Python 3.3