The Kindle supports Mobipocket files directly. You don't need to write a script to do that.
The Kindle has many flaws, but it does allow you to read a few different non-DRM formats.
The hack allow ENCRYPTED Mobi files to be read on the Kindle. So you can buy a DRM-protected mobi book and read it on Kindle.
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.
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.