refacto - moved file size funcs in utils.py. Updated tests.