`file` is a keyword in python, avoid using it as a variable name