I try to implement a Python function using the Python C API, that has a functionality similar to:
def my_func(arg1, arg