Bug fixes for different python versions
Fixed two bugs found when testing different python versions:
- Started using collections.abc as expected (python 3.10)
- Fixed a bug where assumed .name field does not exist (python 3.6)
Fixed two bugs found when testing different python versions: