I think this should be adressed as feature in this topic:
This python script is for generating a .chm file