Send and parse rails environment to python script