first part of ctypes interface. Calling C with array