Tested and add drive and avoid method
removed usage bytearray.clear(), use del s.[:] instead as the former does not seem to be supported by Python 3.2.3: