-werners-
Esteemed Contributor III

the code is easily translated to scala.
There is nothing python specific about it.