title: Sending Hex data
body: <p>I am working with some hardware that can be controlled via hex commands. I already have some snippets of Python code I use for telnet control of other devices that use ASCII commands.</p>
  
  <p>How do I go about sending hex commands? For instance, how would I modify <code>skt.send('some ascii command\r')</code> with hex value, and what's the best data type for storing those values?</p>
  
  <p>Thanks.</p>