[Modified] fix dirty in sa.py