<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _splpy_primitive_input_fns(obj):
 """Convert the list of class input functions to be instance functions against obj. Used by @spl.primitive_operator SPL cpp template. """

    ofns = list()
    for fn in obj._splpy_input_ports:
        ofns.append(getattr(obj, fn.__name__))
    return ofns