Fix insert Inline ToC creating non-linear jumps in class names
Edit Book: When user is editing files belonging to another user account on linux/os x rather than erroring out when saving, change the ownership of the file to the editing user. Fixes #1299097 [Editing doesn't save changes since version 1.28](https://bugs.launchpad.net/calibre/+bug/1299097)
Output last index when dumping index record headers
pep8
pep8
Output post 264 bytes data in the MOBI header correctly when dumping
AZW3 Output: Generate same size of MOBI header as current kindlegen