fix Queue in Python 3