re.DOTALL
ps:
pattern = r'APIResponse\((.*)\)' add_rule_response = re.findall(pattern,str(add_rule_response),flags=re.DOTALL)