Read shell script environment variables into Python