fix widgets safe_import on python 3.2