code: def class_for_type(self, object_type):
          
          if object_type not in self.class_mapping:
              raise ZenpyException("Unknown object_type: " + str(object_type))
          else:
              return self.class_mapping[object_type]
docs: Given an object_type return the class associated with it.