def METHOD_NAME(command, iptables_file):
    """ Execute command """
    logging.debug("Saving iptables for %s" % command)
    result = execute(command)
    fIptables = open(iptables_file, "w+")
    for line in result:
        fIptables.write(line)
        fIptables.write("\n")
    fIptables.close()