[c] try -Xlinker
[c] tested with --as-needed
[py] sample function args and kwargs