doc: Adjusted guide's examples to work with Python 2.5