Add Python code file for chapter 02