Reverting travis, supporting detached.

In py3, out and err streams are _io and behave differently. Instead of
assuming that sys.__stdout__ and err are guaranteed to be valid, backing
up whatever used to be sys.stdout and err instead.

Travis OSX image does not currently support Python.