cythonizing seqrepeat stuff, incomplete