Lesson 11: Python Code for Gillespie Algorithm