Fails with tornado 3.0