how to get environment from a subprocess in python,proc.communicate()