Python code that uses Hamiltonian mechanics to simulate a two-body system, as well other dynamics simulations.