This script simulate key clicks on the camera for changing the Ev values. It can only be used for certain cameras.
As proposed you should use the built in bracketing function of CHDK (not the camera function). With this function you can take more than 3 photos. Make a Tv bracketing.
Simple Ev Bracketing scripts have the disadvantage, that exposure times > 1 s are not possible with the Canon cam. If you use more than 3 pictures the probability is high, that you need a exposure time > 1 s.
msl