Cogsworth A Python package for performing self-consistent population synthesis and galactic dynamics simulations