[python] Reading and writing environment variables in Python?