Add test to recreate error in this bug
Define kwargs before it is referenced
Merge pull request #85 from cbmi/issue-84

Define kwargs before it is reference in _get_request_object()