Python Breadth First Search Recursion