You'll want to delete these lines:
# Read the current settings
#old_kp, old_ki, old_kd, _, _ = steer.control.pid()
# Set new values
#steer.control.pid(kp=old_kp*4, kd=old_kd*0.4)
This was a bit of a hack that was needed only in very early version I shared with @kbalage, but it is has now spread all over the internet 😁.
This is now done internally. So if you do it in your script, that makes the kp gain way too high so the motor is all over the place.