Best method for (HEX) string comparison
<p>suggest a best and efficient method for this</p>

<pre><code>a = "data read from serial port in HEX"
TX1 = "\x10\x04"
RX1 = "\x10\x04"
TX2 = "\xF2\x00\x04\x43\x30\x40\x32\xED\x45"
RX2 = "\x06\xF2\x00\x13\x50\x30\x40\x30\x30\x31\x31\x31\x30\x31\x31\x30\x30\x30\x30\x30\x30\x30\x30\xAE\xFD"
if tx1 in a:
    send.ser(rx1)
    read_buufer()
if tx2 in a:
    send.ser(rx2)
    read_buf()
</code></pre>

<p>so what is the best way to do  this comparison....jus wanna verify the hex data received from serial buffer (a) and verify with list of available request string tx1,tx2,tx3.....txn and send response to from rx1,rx2,rx2......rxn...</p>
