import csv


def create_environment(path):
  """
  Construct the environment form a CSV-like file given in `path`.
  Return a 2D list with floats that define the environment
  """
  env = []
  with open(path, 'r') as csvfile:
    reader = csv.reader(csvfile)

    for row in reader:
      env.append( list( map(float, row) ) ) # Convert ints to floats for matplotlib

  return env