Python data access framework