sample codes for the book Scientific Computing With Python 2