You can use this Python module to convert amongst many different notations and to manage couples of address/netmask in the CIDR notation. WWW: https://pypi.python.org/pypi/iplib