Python Process Stdout Readline Command