Update wrap.py:transform docstring to 3D