How to change the handle_type of a keyframe I've just inserted?

In the VSE, I create a new effect and a keyframe for a property (speed_factor): scn = bpy.context.scene sp = scn.sequence_editor.sequences.new_effect("speed", 'SPEED', 7, start_frame, seq1...