def parse_result(results):
    """
    Given a string, return a dictionary of the different
    key:value pairs separated by semicolons
    """
    if not results:
        return {}
    rlist = results.split(";")
    keyvalpairs = [pair.split(":") for pair in rlist]
    keydict = {
        pair[0].strip(): pair[1].strip() for pair in keyvalpairs if len(pair) == 2
    }
    return keydict