changes to make more compatible with Python 3
Fixes to misbehaving fine input panel.