When a user set getenv=true, they get not only their own environment but also a bunch stuff from Pegasus. This is particular bad with PYTHONPATH as it is set based on whatever Python3 we found on the submit host.
This issue is still being explored, but it seems like saving the original PYTHONPATH in pegasus-python-wrapper and resetting back to it in pegasus-dagman would solve the problem.