input: from typing import List
  
  def parse_csv(filename: str) -> None:
      """ Parses a CSV and generates a new CSV that adds the total number of rows, 
      total number of columns, and total amount of data for each attribute.
      >>> parse_csv('test.csv')
      """
output:     
      with open(filename, 'r') as file:
          lines = file.readlines()
      
      header = lines[0].strip().split(',')
      data = [line.strip().split(',') for line in lines[1:]]
      
      total_rows = len(data)
      total_columns = len(header)
      
      new_header = header + ['Total Rows', 'Total Columns', 'Total Data']
      new_data = []
      
      for row in data:
          total_data = sum(float(value) for value in row)
          new_row = row + [str(total_rows), str(total_columns), str(total_data)]
          new_data.append(new_row)
      
      with open('output.csv', 'w') as output_file:
          output_file.write(','.join(new_header) + '\n')
          for row in new_data:
              output_file.write(','.join(row) + '\n')
  