input: Write a function to parse a CSV and generate a new CSV that adds the total number of rows, total number of columns, and the total amount of data for each attribute. The function should return None if the CSV is empty or if no data is parsed.
  
  assert parse_csv('empty.csv')==None
  assert parse_csv('single_row.csv')==None
  assert parse_csv('test.csv')==None
  assert parse_csv('large_data.csv')==None
output: def parse_csv(filename):
      try:
          with open(filename, 'r') as file:
              lines = file.readlines()
              if not lines:
                  return None
              headers = lines[0].strip().split(',')
              data = [line.strip().split(',') for line in lines[1:]]
              if not data:
                  return None
              total_rows = len(data)
              total_columns = len(headers)
              total_data = [sum(int(row[i]) for row in data if row[i].isdigit()) for i in range(total_columns)]
              new_data = [headers + ['Total Rows', 'Total Columns'] + [f'Total {header}' for header in headers]]
              new_data.append([str(total_rows), str(total_columns)] + [str(d) for d in total_data])
              with open('output.csv', 'w') as outfile:
                  for row in new_data:
                      outfile.write(','.join(row) + '\n')
      except FileNotFoundError:
          return None