Re-create scan.py as node idea in which each of nodes has parents and/or children.
add docstring and doctest.
Merge pull request #3 from marubu/node_scan

Re-create scan.py as node idea