Typescript Array Pop First Python Application