def make_config_parser(defaults=None, config_path=None):
    parser = configparser.SafeConfigParser()
    if defaults is not None:
        with contextlib.closing(StringIO.StringIO(defaults)) as fp:
            parser.readfp(fp)
    if config_path is not None:
        parser.read(config_path)
    return parser
This is the main function called by the `fitsheader` script.
dataset/ETHPy150Open kgaughan/uwhoisd/uwhoisd/utils.py/make_config_parser--crossover with--dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/scripts/fitsheader.py/main