Align python implementation of the vector to the C version. Also use the same test suite for both