sample codes for the book Scientific Computing With Python