Modified python scripts to use user environment