fixed bugs in prep.py
Merge branch 'master' of github.com:zyxue/xit