Changed variable named file to wordfile

This is because file is actually a built-in function for python, which I'd forgotten...