investigation.py: fix formatting of records