checkfuncs.py: wrap all functions for check and expand; check.py: contract code with checkfuncs.py; expand.py: expand extent for reextraction