C++ and Python coordinate objects for Physics and Astronomy applications