python: Unify the way to analyze tombstone and anr