first version of audit.py