from typing import OrderedDict


def parse_MTL(filename):
    """ Return an ordered dict from a Landsat "MTL" metadata file

    Args:
        filename (str): MTL filename

    Returns:
        OrderedDict: dict of MTL file
    """
    data = OrderedDict()
    with open(filename, 'rt') as fid:
        for line in fid:
            split = line.split(' = ')
            if len(split) == 2:
                data[split[0].strip().strip('"')] = split[1].strip().strip('"')
    return data