fix some mycallback.py bugs