Some code used to test the python api for scala.