As
suggested by some people, I fixed up kindlepid.py to detect the serial number type and generate the PID according to whether it's Kindle's or iPhone's. I also fixed a dumb bug in kindlefix.py which should get rid of the author name problem and hopefully other issues with the library books.
<<download link removed>>