DAXFi is a Python package that helps configure several different kinds of firewalls in a consistent way. The rules are described in XML. It comes with a Python package, useful to build other applications and includes some useful example programs.
PacketFlow is a command line utility that processes an XML configuration to generate a set of firewall rules. It is intended to be installed and run directly on the firewall itself. PacketFlow was designed to deal with complex configurations.
Actim is an application written in python that allows sending/receiving files and calling command lines via email. (under GPL license)
For example, if your home PC does not have any access to your office workstation which is behind the company firewall.