Merge pull request #3888 from rainwoodman/patch-1

Update collections.py
Merge pull request #3891 from mdboom/update-collections-backport

Backport of #3888