title: Standard solution for supporting Python 2 and Python 3
body: <p>I'm trying to write a forward compatible program and I was wondering what the "best" way to handle the case where you need different imports.</p>
  
  <p>In my specific case, I am using <code>ConfigParser.SafeConfigParser()</code> from Python2 which becomes <code>configparser.ConfigParser()</code> in Python3.</p>
  
  <p>So far I have made it work either by using a try-except on the import or by using a conditional on the version of Python (using <code>sys</code>). Both work, but I was wondering if there was a recommended solution (maybe one I haven't tried yet).</p>
  
  <p>ETA:
  Thanks everyone.  I used <code>six.moves</code> with no issues.</p>