luhn.py : Combined validator and generator into single file