Fixed main,test and widget.py