validation.luhn Check a digit string against the Luhn mod-10 checksum used by payment cards and many identifiers. is_luhn in Python validationluhnmod10checksum 1.0.0py rs ts18 tests