impove Python module path handling