Fixes to interact code for Py 3
Merge pull request #9 from takluyver/widget-interact-py3

Fixes to interact code for Py 3