Give the python subprocess the same environment as the current process

Maybe this solves the Travis CI issue.