Distribute your classes across different files, e.g. there should be:
book_print.py
book_serialize.py
book_display.py
That are placed in a separate book folder and a main.py file in app folder
NOTE: Attach screenshots of all pages from the correctly connected frontend. Better to make them with opened developer tool, where will be shown requests to the API.