Normally folks would like to lift over from contigs to scaffolds/chromosomes.https://github.com/tanghaibao/jcvi/wiki/ALLMAPS%3A-How-to-lift-over-gene-annotations
But, you want the reverse mapping here so we'd need to swap the AGP file.
python -m jcvi.formats.agp swap assembly.agp
This generate...