'Given a value, get the string name for it.'

def get_string(self, value):

    if (value not in self.values):
        raise ValueError(('Value    %s    not    in    this    enum' % value))
    index = self.values.index(value)
    return self.names[index]
