Path, sql in python