scanner.py: Moved decoding to class Decode
testre2.py: use class Decode for testing
Test results OK