fixing method to write to file
Merge pull request #1 from lchigami/master

Pyenv fixbug