python open file invalid argument