title: print python emoji as unicode string
body: <p>I've been trying to output <code>''</code> as <code>'\U0001f604'</code> instead of the smiley, but it doesn't seem to work.</p>
  <p>I tried using <code>repr()</code> but it gives me this <code>'\xf0\x9f\x98\x84'</code>. Currently it outputs the smiley which is not what I wanted. <code>encode('unicode_escape')</code> gives me a <code>UnicodeDecodeError</code>.</p>
  <p>The smiley was passed as a string to a class method in python. i.e. <code>&quot;I am happy &quot;</code></p>