Using python script for dynamic editing iptables configuration