Example of editing speed property in python?

Does anyone have an example of this properly working ? Like changing the clip speed property on multiple clips in a row and realining them using a python script to edit the mlt ? I can’t seem to quite get it right