input: from typing import List, Tuple
  
  
  def parse_csv(filename: str) -> Tuple[int, int, List[float]]:
      """
      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')
      (4, 3, [12.5, 20.3, 9.8])
      """
output:     with open(filename, 'r') as file:
          lines = file.readlines()
          rows = len(lines)
          columns = len(lines[0].strip().split(','))
          data_sum = [0.0] * columns
          
          for line in lines:
              values = list(map(float, line.strip().split(',')))
              for i in range(columns):
                  data_sum[i] += values[i]
          
          return rows, columns, data_sum