BUG: added seek to begining of file to avoid reading into mem
ENH: modified to not read full file into memory
MAINT: updated imports