Use functools.wraps for decorator

This means that the original docstring appears (see https://docs.python.org/2.6/library/functools.html#functools.wraps)