python read stdout from subprocess