remove some unnecessary overhead in typed Cython code
Merge pull request #4 from scoder/patch-2

remove some unnecessary overhead in typed Cython code