Possible fix for #13

- use IntList .len instead of len() which can return long
- a bit of code cleanup
- upgrade to Cython 0.19