Update link-title.py

-Optimizations (thanks to TingPing)