I have just created a dictionary in python.
stb_info = self.stb_type()
print type(stb_info) #The output gives me dict
for group_no, shelves in stb_info:
TypeError: 'long' object is not iterable
stb_info.items(). Just iterating over a dict iterates over its keys, so it's trying to unpack a key (a long) into two parts, which isn't possible.