Automate production of slides

I wonder if it is possible to generate with a script slides for Impress. For Powerpoint I can use Powershell which does this trick in the Microsoft World. On Unix Machines I have however LibreOffice and scripting tools such as Python or Perl.
Anybody who knows how to proceed ?
Automatic production of slides is very useful to get presentations with changing numbers in it, which are from the layout always the same, but which would take much time to do it by hand.
Thank you very much for every hint on this
Eryk