Sample code to use ctypes Python module for both