def to_python(self, value):
    try:
        if (value in SeverityField.SEVERITIES):
            return SeverityField.SEVERITIES[value]
    except AttributeError:
        pass
    raise FieldValidationException("The value of '{}' for the '{}' parameter is not a valid value".format(value, self.name))
def to_python(self, value):
    try:
        if (value in SeverityField.SEVERITIES):
            return SeverityField.SEVERITIES[value]
    except AttributeError:
        pass
    raise FieldValidationException("The value of '{}' for the '{}' parameter is not a valid value".format(value, self.name))