Using ctypes to monkey patch builtin types at runtime.