code: def equalize_terminal_double_bond(mol):
      
      for i, a in mol.atoms_iter():
          if mol.neighbor_count(i) == 1:
              nb = list(mol.neighbors(i).values())[0]
              if nb.order == 2:
                  nb.type = 2
docs: Show equalized double bond if it is connected to terminal atom.