lib.find_vertex.argtypes = [ndpointer(dtype=vertex_dtype, flags=
    'C_CONTIGUOUS'), ctypes.c_int, ctypes.POINTER(Vertex), ctypes.POINTER(
    Vertex)]
A way to pass milions of items in python to C program many times in rapid succesion