title: How to create a CFuncType in Python
body: <p>I need to pass a callback function that is CFuncType (ctypes.CFUNCTYPE or ctypes.PYFUNCTYPE...).</p>
  
  <p>How can I cast a python function to CFuncType or how can I create a CFuncType function in python.</p>