Changing the grease pencil brush from the API
You can change the active brush via the context tool settings like you set the
gpencil_stroke_placement_view3d in your code:
bpy.context.scene.tool_settings.gpencil_paint.brush = bpy.data.brushes[&quot;Pen&quot;]

Of course you have to use the respective name of your desired brush.