call the method filter.get_request_repr with an argument request, format string '\n{0}' with the result, substitute the result for request_repr.
request_repr = '\n{0}' . format ( filter . get_request_repr ( request ) )