removes unnecessary parameter  

It opens read-only by default as docs points out https://docs.python.org/2/library/functions.html#open thanks @igorsobreira