Using Substrings In Python Which Library