DFS in python

Reference from
http://jpython.blogspot.in/2012/12/bfs-algorithm-in-python.html