New version.
Updated example to a Python3-compatible one.