Use open() instead of file()
Merge pull request #39 from Tilka/file_open

Use open() instead of file()