Retrieving purged job statistics with a Python script