Code formatting with Black, read this to avoid messy merge conflicts

We are starting to enforce code styling with black, prettier and djhtml in Hypha.

The changes are not big but will touch many files. See PRs below.

We suggest other organisation run pre-commit run --all-files on their code base before trying to merge in changes after PR #3547 are merged in to main.

This PR is now merged, time to run pre-commit run --all-files and then rebase all your forks and PRs.