fixed env pointer for python scripts