python get vector value bug