python2.7 train