File system abstraction for Python