took a stab at cythonizing string conversion stuff, not there yet