Typescript Array Pop First Python