title: "argument 1 has unexpected type 'str'"
body: <p>I'm trying to use PyKDE, <code>PyKDE.kdecore.KStandardDirs</code> to be precise. This method is called with two strings according to the <a href="http://api.kde.org/pykde-4.3-api/kdecore/KStandardDirs.html" rel="nofollow">documentation</a> and according to the PyQt4 documentation, I can use standard Python <code>str</code>s instead of <code>QString</code>.
  This doesn't work:</p>
  
  <pre><code>&gt;&gt; KStandardDirs.locate()("socket", "foo")
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  TypeError: KStandardDirs.locate(): not enough arguments
  &gt;&gt;&gt; KStandardDirs.locate("socket", "foo")
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  TypeError: KStandardDirs.locate(): argument 1 has unexpected type 'str'
  </code></pre>
  
  <p>I can't use <code>QString</code> either because it doesn't seem to exist:</p>
  
  <pre><code>&gt;&gt;&gt; from PyQt4.QtCore import QString
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: cannot import name QString
  &gt;&gt;&gt; from PyQt4.QtCore import *
  &gt;&gt;&gt; QString
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  NameError: name 'QString' is not defined
  </code></pre>
  
  <p>What am I doing wrong?</p>