refactor stacktrace_translator.py a bit

./stacktrace_translator.py --test works again