Swift Create Empty Array Python Definition Function