title: In Pycharm, global variables are not autocompleted inside functions when declared global for assignment
body: <p>while using pycharm 3.1 with python3 if i type something simple like </p>
  
  <pre><code>v = ['z', 'e', 't', 'z']
  def foo():
      v.sort()
      print(v)
  </code></pre>
  
  <p>it auto-completes v just fine recognizes v as a list and sort() is shown in the autocomplete results</p>
  
  <p>however if the variable was to be set inside the function pycharm doesn't recognize it as a list and doesn't auto complete</p>
  
  <pre><code>v = ['z', 'e', 't']
  def foo():
      global v
      v.append('o')
      v.sort()
      print(v)
  </code></pre>
  
  <p>at any point inside the function after global v , pycharm does not autocomplete the variable v</p>
  
  <p>is there a logical reason for this in python itself i am not aware of? or could this be a pycharm bug?</p>