Kotlin Create Array Javascript Append Method In Python