Remove atlas_depends_on_subdirs and tidy external and library dependencies. Enable flake8 where relevant.
atlas_depends_on_subdirs