Improving ctypes wrapper for python language.