title: Convert a str to path type?
body: <p>I am trying to interface with some existing code that saves a configuration, and expects a file path that is of type <code>path.path</code>.  The code is expecting that the file path is returned from a pygtk browser window (via another function).  I want to call the <code>save_config</code> function elsewhere in my code with a file path based on different inputs, constructed from string elements.</p>
  <p>When I try to run the code, I am able to construct the file path correctly, but it is a string type, and the save function expects a <code>path.path</code> type.</p>
  <p>Is there a way to convert a string to a path type?  I've tried searching, but could only find the reverse case (path to string).  I also tried using <code>os.path.join()</code>, but that returns a string as well.</p>
  <p>Edit: This is python 2.7, if that makes a difference.</p>