Python Pathlib Get Children Javascript Snake