add flush in mySA.py