queue_classic ported to Python 2