If you want to move the last N elements to the front of the list, you can use the following code:
a[-N:]+a[:-N]
E.g.- To move 3 elements, I used a[-3:]+a[:-3].
>>> a=[11,12,13,14,15,16,17]>>> a[11, 12, 13, 14, 15, 16, 17]>>> a[-3:]+a[:-3][15, 16, 17, 11, 12, 13, 14]