Update sv_tools.py

to be continued