First let me preface with I am new to python, no ego here. I have this code I cobbled together from various sites the ultimate goal of which being that it would output a hex co
I suspect that your serial port settings don't exactly match those of the board try playing with a terminal until you get the exact settings and then use those.
NB you do not need to prepend the 0x to convert a hex value you can use int(s, 16) where s is your substring.