Modify python examples to use print function.