use python package networkx to compute the call stack from top level functions to non-const static variables