python subprocess popen stdout read