Please use
$ isort *.py$ isort *.py
in addition to black.
Pep-8
asks that you organize the following imports
in a different way.
I find it very helpful to know that e.g. import resource refers to
this and not
that
(which your source initially made me believe had been pip installed).