fixed a python 3 bug
added a test-case to pinpoint the problem
fixed the bug which turns out to be a simple typo
Merge branch 'fix-failing-special-instance-trait-events' into python3