python gillespie simulation code