Added general symbol aggregation function
Remove unecessary try catches
Remove old dead code in tree_leaks.py