python read stdout with timeout