Manually relativize module paths under Python 3