def parse_mtl(mtl_file_str):
    """Parses MTL file into a dictionary

    Args:
        mtl_file_str (str): MTL file loaded as a string

    Returns:
        dict
    """
    lines = mtl_file_str.split('\n')
    mtl_dict = {}
    for l in lines:
        split_line = l.split('=')
        if len(split_line) == 2:
            mtl_dict[split_line[0].strip()] = split_line[1].strip()
    return mtl_dict