Scala Apply Method In Python Example