Fixes test_queue.py for PY3