Write with filter and some other things

Implementing filter types other than '0'.
This can be nice to achieve better compression.
Right now only one filter per file applied.

Also core of applying filter and undo filter switched to 'augmented' py to make python development easier and keeping cython speedup.

This is my first experience to contribute, sorry if something wrong.