Fix CEF value conversion functions for Python 3.