patch for tornado 3.0 incompatible problem.

tornado 3.0 has some [backwards-incompatible changes](http://www.tornadoweb.org/en/stable/releases/v3.0.0.html#backwards-incompatible-changes)