Typescript Insert Item Into Array Methods In Python