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.