CLN: pep8
Don't leak file handles
ENH: Add entry point