Reworking Queue import and usage to work in python2 and python3.