Python Backtracking-search Resources