parse stack traces to correct python line numbers