Multibody dynamic simulation code in Python