python 2.7 string conversion by inserting another string or character after particular counts : send data on serial in hex format i have data in string format on 1st line which converted to hex string on 2nd line but while sending python - serial it should be in format on 3rd line. I want to insert '\x' initially and after every 2 count. please help for the same

    
    1st line - string ='s00123'
    2nd line - "01733030313233"
    3rd lline - `x01\x73\x30\x30\x31\x32\x33`

