How To Get A Substring In Python