Re-create scan.py as node idea 

By adding infomation of parents or/and children, it can represent the dependency between nodes.