begin making python translation behave identically to the cython code