title: AttributeError: 'module' object has no attribute 'maketrans' - PyCharm
body: <p>I've got this strange problem on my PC with Python 2.7 + PyCharm 2016.2 + Windows 10 (64).</p>
  
  <p>While running script:</p>
  
  <pre><code>import urllib
  from BeautifulSoup import *
  
  url = raw_input('Enter -')
  if (len(url) &lt; 1):
      url = "http://python-data.dr-chuck.net/comments_292106.html"
  html = urllib.urlopen(url).read()
  soup = BeautifulSoup(html)
  lst = list()
  tags = soup('span')
  
  for tag in tags:
  #    print 'TAG:', tag
  #    print 'URL:', tag.get('href', None)
  #    print 'Contents:', tag.contents
  #    print 'Attrs:', tag.attrs
      num = int(tag.contents[0])
      lst.append(num)
  print sum(lst)
  </code></pre>
  
  <p>I've got such message:</p>
  
  <pre><code>C:\Python27\python.exe E:/python/coursera/following_links.py
  23
  0.8475
  Traceback (most recent call 
    File "E:/python/coursera/following_links.py", line 1, in &lt;module&gt;
      import urllib
    File "C:\Python27\lib\urllib.py", line 30, in &lt;module&gt;
      import base64
    File "C:\Python27\lib\base64.py", line 98, in &lt;module&gt;
      _urlsafe_encode_translation = string.maketrans(b'+/', b'-_')
  AttributeError: 'module' object has no attribute 'maketrans'
  
  Process finished with exit code 1
  </code></pre>
  
  <p>Same situation occurs in WingIDE. </p>
  
  <p>Funny is, that while using python's Idle this script works.</p>
  
  <p>Also it works on my second PC with Windows 8 (64) (Python 2.7 and PyCharm 2016.2)</p>