Pass overriden sys.stderr to Deployment object. Use StringIO as baseclass for the stdout/err forwarders, to make sure every file attribute/methods are implemented.