Simple python tools for cosmology