Shifting Array Elements In Python