Use finish instead of write
Tornado update