python read stdout of another program