A C++ library (and a python module) to study the motion of undiviseable entities