with a L298N controller I need to "warm up" the motor to get it to run without stopping, why and how to do it with python
You need to set the level for both IN1 and IN2 at the same time.


Forward will be IN1 high and IN2 low.
Reverse will be IN1 low and IN2 high.


It's there in the example code in the datasheet.