The code:
if (query_id, _) in hashtable[bucket]:
I expected this to work like in a for loop, but instead it gives this error:
NameError: global name '_' is not defined
hastable[bucket]
is a list of pairs if that matters (which I doubt). Any ideas?