Added first version of Ger's tsys_fix.py