Python/C++ synapse creation using dynamic arrays