Fixes 145

by augmenting cythongen.  For @tewk