code: def parse_fixed_width(types, lines):
      
      values = []
      line = []
      for width, parser in types:
          if not line:
              line = lines.pop(0).replace('\n', '')
  
          values.append(parser(line[:width]))
          line = line[width:]
  
      return values
docs: Parse a fixed width line.