Remove from __future__ import division.
Do not create logger twice.
Rename log_and_return_response to error_response.