Computing force fields using Open Babel
Coordinates can be accessed using 

[OBAtom.GetX(),OBAtom.GetY(),OBAtom.GetZ()]


look at this Github discussion.


If you have a better answer please don't hesitate to answer the question.