Added the code for StreamHandler to this file so Jython can work properly and won't require importing something from outside. Also means the agent could run on a different system or in a virtualenv (or RIDE could run in a virtualenv).