updated python requirements
close filehandles after read