fix syntax errors in   sources/ToratEmet/tools.py