def get_python_list(scala_list):
    """Return list from elements of scala.collection.immutable.List"""
    python_list = []
    for i in range(scala_list.length()):
        python_list.append(scala_list.apply(i))
    return python_list
def get_python_list ( scala_list ) : python_list = [ ] for i in range ( scala_list . length ( ) ) : python_list . append ( scala_list . apply ( i ) ) return python_list
Return list from elements of scala.collection.immutable.List