Python Remove Text After Substring Cpp Payment