IOStream wrapper for use with Tornado coroutines