'Convert a string name to it\'s corresponding value.  If a value
is passed in, it is returned.'

def get_value(self, name):

    if (isinstance(name, int) and (not self.string_values)):
        return name
    return getattr(self, self.get_attr_name(name))
