Typescript Array Shift Method In Python Definition