gwyddion: add python support

Add optional dependencies for Python support. Includes a patch that fixes
lazy loading Gwyddion libraries from the stand-alone gwy module.

Closes #28706.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>