BUG: Fix reference to attribute.

Fixes #78.
Merge pull request #112 from enthought/fix/python-editor-event

BUG: Fix reference to attribute.