configure_environment function

Configure a Python Environment