extract Pandigital class into Python challenge lib and use it in problem 24