Rotate A Given Array Definition Python