'Return a config parser object containing a single section of the
global configuration, that can be later written to a file object.
:param section: Tuple with sections we want to turn into a config parser
object.
:return: ConfigParser() object containing all the contents of sections.'

def get_section_values(self, sections):

    self._ensure_config_parsed()
    if isinstance(sections, str):
        sections = [sections]
    cfgparser = ConfigParser.ConfigParser()
    for section in sections:
        cfgparser.add_section(section)
        for (option, value) in self.config.items(section):
            cfgparser.set(section, option, value)
    return cfgparser
