title: Conversion of unicode string to hex representation in Python
body: <p>I have a list of unicode string e.g.</p>
  
  <pre><code>list1 = [u'00 01 02 03']
  </code></pre>
  
  <p>and I want to convert it into following list</p>
  
  <pre><code>list2 = [0x00, 0x01, 0x02, 0x03]
  </code></pre>
  
  <p>I have converted list1 to simple string values as follow </p>
  
  <pre><code>list3 = ['0x00', '0x01', '0x02', '0x03'] 
  </code></pre>
  
  <p>but I need list2 as result. </p>
  
  <p>Any suggestion to produce <strong>list2</strong> from <strong>list1</strong> directly or from <strong>list3</strong>.</p>
  
  <p>Thanks</p>