Get Traceback As String In Python