Helpers for working with tornado as rest framework