Update apg_de.py