Use plain C implementation for misc Python module rather than SWIG.