example of extending pyton by useing c, cython, ctypes etc