code: def parse_csv(self, infile, delimiter=",", decimal_sep="."):
          "Parse template format csv file and create elements dict"
          keys = ('name','type','x1','y1','x2','y2','font','size',
              'bold','italic','underline','foreground','background',
              'align','text','priority', 'multiline')
          self.elements = []
          self.pg_no = 0
          if not PY3K:
              f = open(infile, 'rb')
          else:
              f = open(infile)
          for row in csv.reader(f, delimiter=delimiter):
              kargs = {}
              for i,v in enumerate(row):
                  if not v.startswith("'") and decimal_sep!=".": 
                      v = v.replace(decimal_sep,".")
                  else:
                      v = v
                  if v=='':
                      v = None
                  else:
                      v = eval(v.strip())
                  kargs[keys[i]] = v
              self.elements.append(kargs)
          self.keys = [v['name'].lower() for v in self.elementsf parse_csv(self, infile, delimiter=",", decimal_sep="."):
          "Parse template format csv file and create elements dict"
          keys = ('name','type','x1','y1','x2','y2','font','size',
              'bold','italic','underline','foreground','background',
              'align','text','priority', 'multiline')
          self.elements = []
          self.pg_no = 0
          if not PY3K:
              f = open(infile, 'rb')
          else:
              f = open(infile)
          for row in csv.reader(f, delimiter=delimiter):
              kargs = {}
              for i,v in enumerate(row):
                  if not v.startswith("'") and decimal_sep!=".": 
                      v = v.replace(decimal_sep,".")
                  else:
                      v = v
                  if v=='':
                      v = None
                  else:
                      v = eval(v.strip())
                  kargs[keys[i]] = v
              self.elements.append(kargs)
          self.keys = [v['name'].lower() for v in self.elements]
docs: Parse template format csv file and create elements dict