Initial commit of WCT and heap_stat.py