def class_for_type(self, object_type):
if object_type not in self.class_mapping:<EOL><INDENT>raise ZenpyException("<STR_LIT>" + str(object_type))<EOL><DEDENT>else:<EOL><INDENT>return self.class_mapping[object_type]<EOL><DEDENT>
Given an object_type return the class associated with it.