[IMP] add dump_stacks.py script to help getting periodical stacks