Added rudimentary environment support in python.