Is there a way to modify the input layer, when using QGIS processing algorithms from the Python console?
import processing
layer = iface.activeLayer()
processing.runalg("qgis:multiparttosingleparts", layer, "tmp.shp")
Instead of creating a new shape layer, I want to convert the geometries of the input layer to single-parts.

