Added python3 queue support