The Kindle supports Mobipocket files directly. You don't need to write a script to do that.
We've known for some time already that Amazon's AZW files are actually Mobi files, but Amazon didn't share Kindle's Mobi PID which would allow one to buy encrypted Mobi books for Kindle.
The Kindle only allows the reading of Amazon DRM-protected content.
If you read some of the Kindle discussion groups, you'll see people complaining about "no backlighting", and then a few days/weeks later they will be lauding the fact that it has no backlighting.
A revolutionary portable reader that wirelessly downloads books, newspapers, magazines and blogs to a crisp, high-resolution electronic paper display that looks and reads like real paper, even in bright sunlight.