file mode removed from kwargs

the caller shouldn't be able to change the file mode.