bull.py for train&test