Fixed to work for single-file .py packages.