Implement multiwrap() method

See the docstring for method description.