fix the potential for unsafe code when running under pyqt
Merge pull request #82 from nucleic/fix-pyqt-slots

fix the potential for unsafe code when running under pyqt