def parse_header(line):
    """Returns dict {'field': (start, length), ...}"""
    fields = [f.strip() for f in line.split(' ') if f.strip()]
    return {field: (line.index(field), len(field) + 1) for field in fields}