title: python bytes to C array (like xxd program"
body: <p>In python3 I have some bytes. I want to export them to C source code.
  Outside python I use "xxd -i binary_file" command.</p>
  
  <p>Example:</p>
  
  <pre><code>x = b'abc123'
  print(bytes_to_c_arr(x))
  # should output:
  unsigned char x[] = { 0x61, 0x62, 0x63, 0x31, 0x32, 0x33 };
  </code></pre>
  
  <p>Is there ready method or handy one-liner? I can do away without type declaration, only bytes for contents would suffice.</p>