Python 3 compatibility: Relative imports

Python 3 removed support for implicit relative imports inside a packages; now it is necessary to explicitly prefix the module name with a dot.

This patch does so, fixing ImportErrors under Python >= 3.0 while retaining compatibility with Python 2.6 and Python 2.7.