def load_config(fp, reopen=False):
        config = RawConfigParser()

        if reopen:
            fp = open(fp.name)

        try:  # config.readfp() is Deprecated since python 3.2
            # noinspection PyDeprecation
            read_file = config.readfp
        except AttributeError:
            read_file = config.read_file

        read_file(fp)
        fp.close()
        return config