retry writing to stdout, err in repl code; a hack around https://code.google.com/p/gevent/issues/detail?id=147
retry writing to stdout, err in repl code; a hack around https://code.google.com/p/gevent/issues/detail?id=147

paypal/support,paypal/support