Python extensions in C using SWIG