Hack let you convert encrypted Mobipocket files that were intended for another reader so that that work on Kindle.
The Kindle has many flaws, but it does allow you to read a few different non-DRM formats.
The Kindle supports Mobipocket files directly. You don't need to write a script to do that.
Non-DRM Mobi books, like free e-books found online in Mobi format, or files you convert to Mobi files, are already supported on 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.