Define kwargs before it is reference in _get_request_object()

Resolves #84.