how can i get an array of alternating values in python?,a[1::2] = -1