Changed to not require collections

collections library is only available in Py 2.7+