Refactor based on code review

Changes include_pending query param -> exclude_pending for consistency.
Adds URL tests for user audits.
Fixes some unrelated python lint.