Readability could be improved by conforming to PEP-8. Very easy to do with a formatter such as black before commiting and also as a build step in github's CI tool.