python bindings : fix pyoptions_to_args and a memleak in the same time