Pathwalk Documentation Python Function