Fix non-existing __len__ attribute of Queue instance