python read stdout non blocking