Python 3 compatibility: relative imports

In Python 3, this kind of import doesn't work any more. Relative imports have
to be explicit, as in this commit.