Fix Flakes Errors: openspending/ui/controllers/home.py
Fix Flakes Errors: openspending/ui/controllers/source.py
Fix Flakes Errors: openspending/ui/controllers/view.py
Fix Flakes Errors: openspending/ui/controllers/api/version1.py
Fix Flakes Errors: openspending/ui/i18n/__init__.py
Fix Flakes Errors: openspending/ui/lib/aggregation.py
Fix Flakes Errors: openspending/ui/lib/base.py
Fix Flakes Errors: openspending/ui/lib/cache.py
Fix Flakes Errors: openspending/ui/lib/content.py
Fix Flakes Errors: openspending/ui/lib/helpers.py

Removing the url or json imports causes tests to fail (even though flakes thinks they are unused).
Fix Flakes Errors: openspending/ui/test/functional/test_api_version1.py
Fix Flakes Errors: openspending/ui/test/functional/test_api_version2.py
Fix Flakes Errors: openspending/ui/test/functional/test_badge.py
Fix Flakes Errors: openspending/ui/test/functional/test_dimension.py
Fix Flakes Errors: openspending/ui/test/functional/test_editor.py
Fix Flakes Errors: openspending/ui/test/functional/test_error.py
Fix Flakes Errors: openspending/ui/test/functional/test_rest.py
Fix Flakes Errors: openspending/ui/test/functional/test_run.py
Fix Flakes Errors: openspending/ui/test/functional/test_source.py
Fix Flakes Errors: openspending/ui/test/functional/test_api_version2.py