Run a Python script in QGIS to automate tasks