This example relies on Python 2.0 or newer.