Update widgets.py

to return a list of strings instead of a string