SWI-Prolog Did You Know Did you know? Janus-swi lets you embed SWI-Prolog in Python Search Documentation:
Predicate working_directory/2