edited get_atomicdata to use separate variable to modes structure as does not include python.h