def _get_section(self, name, type):
        """
        Find and return a section with `name` and `type`
        """
        for section in self.sections:
            if section['name'] == name and section['type'] == type:
                return section
        return None
def _get_section ( self , name , type ) : for section in self . sections : if section [ 'name' ] == name and section [ 'type' ] == type : return section return None
Find and return a section with `name` and `type`