Yes, you do use the same api, the Java library as well as the same target, jvm bytecode, so there is no behavior change. Also the syntax is similar which results into readable transformed code too. Beside generating the same behavior from python with Kotlin producing readable code is another challenge.