@@ -0,0 +1,10 @@
+import argparse
+from rdkit import Chem
+sdf = Chem.SDMolSupplier("cdk2.sdf")
+f = open("cdk2.smi","w")
+for mol in sdf:
+    name = mol.GetProp("_Name")
+    smi = Chem.MolToSmiles( mol )
+    f.write("{}\t{}\n".format(name,smi))
+f.close()
+
You could do the work that this file does a tiny bit more simply using an RDKit `SmilesMolWriter`, but doing it with Python is fine too.