Fix compatibility with Python >=3.10
As of Python 3.9 collections.Iterable is deprecated in favour of collections.abc.Iterable, and it is broken as of Python 3.10.
This change works with LCG 105 (Python 3.9) and is mandatory to work with LCG 106 (Python 3.11).