In case anyone missed it the first time around:
https://github.com/SolaProject/mobi_...v-file#example
is a pure python, one-file module that can be used to check/change kindlebook metadata. Including EXTH[501].
It's also available to be installed with pip as mobi-header.