Python Transform Numpy Array Append Value