Don't monkey patch sys.stdout and sys.stderr twice
Don't monkey patch sys.stdout and sys.stderr twice

For some reason, if you monkey patch sys.stdout or sys.stderr with an
utf-8 StreamWriter object twice, then you can't print unicode anymore.

This changeset checks if sys.stdout and sys.stderr have already been
patched using isinstance.

This fixes log streaming if you instantiate the CLI twice (as it is
done in dcu).

andresriancho/dotcloud-cli