core_types is now not cython at all, can we move it to core_types.py and remove the last few pieces of cython hangover?