import csv


def read_translation_table(filehandle):
    """Read a translation table from a csv with mob attribute names in
    first column and AvidLog field names in second column."""
    reader = csv.reader(filehandle)
    rows = list(row for row in reader)
    return dict((adapter, mob) for mob, adapter in rows)