import configparser


def parse_prep(prepname, prepfile):
    """Gets parameters from specified prep name and config file."""

    preps = configparser.ConfigParser()
    preps.read(prepfile)

    return preps[prepname.upper()]