Population simulator written in python