Pygsw bump

Ports some code to C to improve performance.