To prepare gs1-128 feature, refactors the check digit computation. Also, does some cleanings: - Removes unusused check_ean method; - Converts comments into docstrings; - Makes needed changes to avoid linter errors (PEP 8). task-1968113 Co-authored-by: ryv-odoo<ryv@odoo.com>