In python how to remove a substring of string?