'Register instance to class dictionary'

def _register_instance(self):

    if (self.name in self.instances):
        raise ValueError('Name    "{0}"    already    in    instance    dict'.format(self.name))
    self.instances[self.name] = self
