python read stdout until empty