fix add_check_digit to take zero-padded and non-zero-padded GTINs

also add tests for add_check_digit
PEP-8 fixes