Sort imports in data.py
'entries' is more clear than 'files' here.
fix helper imports, remove 3 unused functions.
replace is_index attribute with functioncall.