Work with Python 3.
Use absolute import (needed for Python 3).
Use new-style print.