Yeah, i know this is old, but i just recently had to use this.
A few things:
1. bamresize.py has a commented out line in its end #main() - uncomment, if you want to run a modified bamresize.py
2. a correct resizeFrame function would be this:
def resizeFrame (self, percent, PILPalette,
width, height, data, centerX, centerY):
im = Image.fromstring("P", (width, height), data)
im.putpalette(PILPalette)
if width > 1 and height > 1:
width = width * percent / 100
height = height * percent / 100
im2 = im.resize ((width, height))
data = im2.tostring()
centerX = centerX * percent / 100
centerY = centerY * percent / 100
return width, height, data, centerX, centerY