code: def _list_to_seq(lst):
      
      ml = autoclass('scala.collection.mutable.MutableList')()
      for element in lst:
          ml.appendElem(element)
      return ml
docs: Return a scala.collection.Seq from a Python list.