Duplicate scan

Skip duplicate node.
Reffered in #14.

After scan, automatically compliment all parents and children in origin node_list.

Note that as `scan.py` use functions in `../nodes.py`, you must run doctest in the upper directory.