added sd_reporting.py and made sd_accounting more manageable.