Added in python scripts for chapter 2 examples