[IMRP] Simplify amend_isbn_edition
- split function to decrease code complexity
- use pformat instead of loops to format dicts
- decrease nested flow
- move last pywikibot.info statements into its own function
Change-Id: Ib131f77e31f64025499537f04bb6f9fdd145e29c