various python fns & cython counterparts to use as reference fns