revise leoVersion.py to improve style.