Added docstrings and added an __iter__ method to DFSIterator to make it a legal iterator.
Ensured that iterators are for Python3.