code: def get(self, res, cls, default = None):
          
  
          try:
              return self[(res, cls)]
          except KeyError:
              return default
docs: get(name, class [, default])
  
          Return the value matching the resource identified by NAME and
          CLASS.  If no match is found, DEFAULT is returned, or None if
          DEFAULT isn't specified.