Added helper function for regenerating wrappers with SWIG. This should not be in the final release.