def parse_parametrized_option(string):
    """ Parses a parametrized options string like
    'base;option=value;otheroption=othervalue'.

    :returns: the base string and a :class:`dict` with all parameters
    """
    parts = string.split(";")
    params = dict(
        param.strip().split("=", 1) for param in parts[1:]
    )
    return parts[0], params