swig setDefaults from options