Update compaction.py