Fix/imports python3.10
In Python 3.10 collections.Iterable
was moved go collections.abc.Iterable
.
This should fix the compatibility for python3.10. Although the fix is in fact a hack, I'm not investing more time to fix it properly.
I also moved the imports from methods and functions to file headers. Importing within elsewhere seems like an unnecessary spaghetti approach, especially from standard library....