Fix linting errors
This MR will fix some flake8 warnings.
However, djangae
integration step in the pipeline will fail due to mocking an import that is not there anymore. For this step to pass, we first need to merge potato-oss/djangae/djangae!1386 (merged)