Copy __doc__ when wrapping function

Signed-off-by: Vratislav Podzimek <vpodzime@redhat.com>
Signed-off-by: Martin Pitt <martinpitt@gnome.org>