Python Process Stdout Readline Method