Python Ativar erros PYQT

import cgitb 
cgitb.enable(format = 'text')
dex!?