Port of PySonar2 from Java to Python