fix pep8 compliance in widgets