Python extension for vector processing written in C