import csv


def getDataTypes(filename):
  """This function reads the given filename as CSV where the first column will be a column name and the second the datatype."""
  types = {}
  with open(filename, 'r') as dTypeIn:
    dtypeReader = csv.reader(dTypeIn, delimiter=',')
    for row in dtypeReader:
      types[row[0]] = row[1]
  return types