python: support exceptions without traceback

e.g. SyntaxError (python-2.7.5-13.fc20, python-2.7.7-2.fc21)

Signed-off-by: Jakub Filak <jfilak@redhat.com>