code: def list_hooks(self, key_name):
          
          kf = self.dct[key_name]
          if 'hooks' not in kf:
              return []
          else:
              return kf['hooks'].iterkeys()
docs: Return list of all hooks attached to key_name.