Fixed endianness issues with gettxcolor.py, and separated out testing code