def txt_to_dict(info_file_path, sep=":"):
    """
    Gets a path to a text file with lines in format key: value and returns dict.
    """
    with open(info_file_path) as f:
        lines = [l.strip() for l in f]
    pairs = filter(lambda x: x, lines)
    pairs = (l.split(sep) for l in pairs)
    pairs = ((k.strip(), v.strip()) for k, v in pairs)
    return dict(pairs)