Don't use 'file' as a variable name
Modernize the code a bit
Add docstring
1 file changed