Fix: added inspect import to widget.py