def dict_to_list(dict, header):
    """Convert a dictionary into a list in the order specified by the header"""
    row = []
    for field in header:
        if field in dict:
            row.append(str(dict[field]))
        else:
            row.append(None)
    return row