Contained in this PR:
* Use latest versions of checkout and python setup GitHub actions
* Fix Ubuntu version since not all Python versions are available on ubuntu-latest
* Lint fixes: use setattr directly instead of via dunder-method, and ignore unnecessary lambda lint warnings.
* Loosen formatting tests