Traceback (most recent call last): File "", line 249, in format_news File "", line 39, in __init__ NameError: global name 'sel' is not defined