Merge pull request #1 from Finntack/master

update
fix malloc
Make "s#" use Py_ssize_t rather than int.
fix line length
cleanup a bit
Merge pull request #6 from clementhk/fix-malloc

Fix malloc