from typing import OrderedDict


def cols2dict(headers,iterable):
    """creates an ordered dictionary from sequences of keys and values
    
    headers - a sequence of hashable items
    iterable - a sequence of items (checked to be the same length as headers)
    """
    if len(headers) != len(iterable): raise ValueError('headers amd iterable sequences are not of equal length')
    return OrderedDict(zip(headers,iterable))