Tornado 4.0.x compatibility

* Resolves #46