some adjustments to imports, addition of widget.constants and cleanup of checkbox.py