Add ctypes implementation (no compilation)

- Only minimally tested