[swig] Add swig.configure method
[html] [fix] Better scope