Im sorry, i forgot to add this again.
If you already researched the technology you can try this:
game.player.force.reset_technology_effects()
As this can cause some side effects it is recommended to do the following:
/c game.player.force.technologies['advanced-material-processing'].researched=false; game.player.force.set_saved_technology_progress('advanced-material-processing', 0)
/c game.player.force.technologies['advanced-material-processing-2'].researched=false; game.player.force.set_saved_technology_progress('advanced-material-processing-2', 0)
/c game.player.force.technologies['advanced-material-processing'].researched=true
/c game.player.force.technologies['advanced-material-processing-2'].researched=true
This unlocks all recipes if the technology has been already researched.
Ill add a similar mechanic in the next update to do this on game load/configuration changed.