Minor fixes for pep and styles widget.py