code: def popitem(self):
          
          try:
              item = dict.popitem(self)
              return (item[0], item[1][0])
          except KeyError, e:
              raise BadRequestKeyError(str(e))
docs: Pop an item from the dict.