python API for ig files