Add new file toolkit.py in. Begin to refactor
Finish some of the refactoring
重构结束，但是还没有测试。