pieces.py: manage the downloaded pieces on disk