fix queue in python3