Your itemIds
function should return a tuple of tuples, but the way you have coded it, it is returning a tuple of strings. You need to add a ,
inside the parenthesis to return a single item tuple, try replacing your code with the following:
itemIds = lambda: (('q42',), ('Q42',), ('Q1', ), ('Q1000',), ('Q31337',),)