def METHOD_NAME(self, *args, **kwargs):
    record = super().METHOD_NAME(*args, **kwargs)
    try:
        record.module, record.filename = record.pathname.rsplit('.', 1)
    except:
        record.module, record.filename = record.pathname, record.pathname
    return record