Replace deprecated code in python tests
The following warning is being issued.
D:statschannel:/usr/lib/python3/dist-packages/requests_toolbelt/_compat.py:11: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working