Remove duplicate .gitignore.
Open file using the "with" statement.
Close open files in filehash functions at helpers.py

Some files were not explicitly closed. Using `with` guarantees that they

will get closed.