prepare_session function

Function for setting up a python environment within R.