fix: make collections import compatible across Python versions (#419)

* Use collections.abc, fixes #418

* Python 2.7 compat fix

* Fix check
1 file changed