Update leo.py deleted unnecessary code lines