python practice. word-based inline diff for general sentences