
  def smi2mol(self,smi):
    molSize=self._molsize
    
    mol=Chem.MolFromSmiles(smi)
    mc = Chem.Mol(mol.ToBinary())
    if self._kekulize:
      try:
          Chem.Kekulize(mc)
      except:
          mc = Chem.Mol(mol.ToBinary())
    if not mc.GetNumConformers():
        rdDepictor.Compute2DCoords(mc)
 
    Chem.SanitizeMol(mol,sanitizeOps=Chem.SanitizeFlags.SANITIZE_ALL^\
                  Chem.SanitizeFlags.SANITIZE_KEKULIZE^\
                  Chem.SanitizeFlags.SANITIZE_SETAROMATICITY)

    if 