Python Remove Text After Substring Count