Code corresponding to my MacTech Cocoa-Python demo