dmarcap provides a simple python parser for DMARC aggregate reports as defined in https://tools.ietf.org/html/rfc7489
dmarcap is shipped as a distutils package. To install, clone the repository and run:
$ python setup.py install
To parse an aggregate report:
>>> import dmarcap
>>> aggregate_report = dmarcap.Parser("/path/to/report.xml").parse_report()
Further documentation can be found at http://dmarc-aggregate-parser.readthedocs.io/en/latest/