Match uri and return 404 response if not found.

Minor pep8 fixes as well.
Remove unused imports for docs/conf