Python package for analyzing N-body simulations and constraining galaxy evolution models