Returns the variable by passing its name

def _create_variables_dic(self):
        """
        Returns the variable by passing its name
        """
        self.name_to_variable = {}
        for variable in self.space_expanded:
            self.name_to_variable[variable.name] = variable