move the AT macros to a browser view

also includes some flake8 fixes