Euclidean distance between atoms using RDKit
The issue was that I had to embed the molecule to have a 3D conformation. So I added following line:

AllChem.EmbedMolecule(mol)


Feel free to answer with better suggestions and alternatives.