Sample code from PythonLab classes