beta 0.02 fixed an issue in twtool.py