Implemented some kind of apparently working write wrapper.
Merge pull request #2 from Cadair/ana_cython

God said to me. Sometimes you just have to accept pull requests and remove the comments. 

I said to him, OK!