Added the code for StreamHandler to this file so Jython can work properly and won't require importing something from outside.