Fix error with converting vector to python list