small fix for py3 (widgets examples work now)