Fixes test failures due to requests changes

This also adds request logging for the rest-based API calls and reduces verbosity of pylint and flake8 so the actual errors are more visible.