Also, if the path return only one node, I get an index out of range error
Traceback (most recent call last):
File "F:\test\exampe.py", line 72, in
main()
File "F:\test\exampe.py", line 58, in main
path2 = path2[0]["path"]
IndexError: list index out of range