Use "open" instead of "file".

"file" is not supported in Python 3.