I found a way to pass options to functions in gap (looking at the use of function_factory in permgroup.py); I guess it can be improved and I do not know how to make it more useful. I put an example. In LINS package there is a function called LowIndexNormalSubs; without options, applied to a group G and a number n, it gives all the normal subgroups of G of index at most n; if one is only interested in n-index subgroups one has to pass the option allSubgroups as false; if only these subgroups are needed it is much faster than computing all of them and filter. The following seams to work
low_index_normal_subgroups_exact = libgap.function_factory("""function(G, n) return LowIndexNormalSubs(G, n : allSubgroups := false); end; """)