title: Reverse a string in Python two characters at a time (Network byte order)
body: <p>Say you have this string:</p>
  
  <pre><code>ABCDEFGH
  </code></pre>
  
  <p>And you want to reverse it so that it becomes:</p>
  
  <pre><code>GHEFCDAB
  </code></pre>
  
  <p>What would be the most efficient / pythonic solution?  I've tried a few different things but they all look horrible...</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>Update</strong>:</p>
  
  <p>In case anyone's interested, this wasn't for homework. I had a script that was processing data from a network capture and returning it as a string of hex bytes. The problem was the data was still in network order. Due to the way the app was written, I didn't want to go back through and try to use say socket.htons, I just wanted to reverse the string. </p>
  
  <p>Unfortunately my attempts seemed so hideous, I knew there must be a better way (a more pythonic solution) - hence my question here. </p>