Update ExtractCallStack.py

Added code to accommodate resume and reend statements in trace files