Added an example for the Python interface.