reverted some cython changes
encoding