Fix tests
Fix some tests.
PyDecode docs etc.
cleanup, and typing in pyx. consistency with templates elsewhere
Merge branch 'master' into semirings
cython fix, tests pass