Add ctypes implementation (no compilation)

- Only minimally tested
Merge pull request #2 from abarnert/ctypes

Add ctypes implementation (no compilation)