setPythonEnvironment function

Use the python environment created using configurePython()