Path-related functions for Python