Fixes for use of libtopology from Python via SWIG.