improve travis.py and .travis.yml for handle pullrequest