def getCol(colName): theCol = [k for k, v in DATA_HEADINGS.iteritems() if v == colName] return theCol[0]