def fibpy(x):
    if x <= 1:
        return 1
return fibpy(x - 1) + fibpy(x - 2)
fibc = cinpy.defc('fib', ctypes.CFUNCTYPE(ctypes.c_long, ctypes.c_int),
    """
                long fib(int x) {
                    if (x<=1) return 1;
                    return fib(x-1)+fib(x-2);
                }
                """
    )
print(fibpy(30))
Executing a C program in python?