Malthus Growth Model, Python Version