efficient way to shift a list in python,"shift([1, 2, 3], 14)"