Python 3.x: replace absolute with relative import