Updated for use with pyobjc-3.0.1