working card number validation py soln