title: vim: unable to autocomplete python package path
body: <p>I am using vim with - neocomplete, jedi-vim, supertab and trying to do autocompletion while typing the following line:</p>
  
  <pre><code>from django.shortcuts import get_object_or_404
  </code></pre>
  
  <p>If I press tab after <strong>django.</strong> - I get a drop-down containing</p>
  
  <pre><code>        sys                  file [FI]
          VERSION                   [O]
          __doc__                   [O]
           __path__                  [O]
           __name__                  [O]
           __file__                  [O]
           __package__               [O]
           get_version(...,***)      [O]
           __builtins__()            [O]
  </code></pre>
  
  <p>Instead of a directory listing - containing sub-ackages of django package. Howeever if I copy django folder from /usr/local/lib/python2.7/dist-packages/django  to my local dir. 
  pressing tab after <strong>django.</strong> gives</p>
  
  <pre><code>   bin.          dir  [FI]
     conf.         dir  [FI]
     contrib.      dir  [FI]
     core.         dir  [FI]
     .
     .
  </code></pre>
  
  <p>This is probably because neocomplete picks it up from local path and displays the directory listing. </p>
  
  <p>But in neither case can i do</p>
  
  <pre><code>from django.shortcuts import get_object_or_404
  </code></pre>
  
  <p>because get_object_or_404 is defined in django/shortcuts/__init__.py and jedi-vim does not seem to pick it up. So my questions are:</p>
  
  <ol>
  <li><p>How to do autocomplete of packages using vim if they are not in immediate directory - but are present in the PYTHONPATH?</p></li>
  <li><p>How to include methods like get_object_or_404 in autocompletion (For this I tried using ctags on the whole /usr/local/lib/python2.7/dist-packages/django dir but this does not check with the intention of displaying methods in a specific package - it displays all the fuzzy matching tagged methods which leads to a lot of noise while coding)?</p></li>
  </ol>
  
  <p>My ~/.vimrc specific to supertab, neocomplete and jedi-vim is as follows:</p>
  
  <pre><code>Bundle 'Shougo/neocomplete.vim'
  let g:neocomplcache_enable_at_startup = 1
  let g:acp_enableAtStartup = 0
  let g:neocomplete#enable_at_startup = 1
  let g:neocomplete#enable_smart_case = 1
  let g:neocomplete#sources#syntax#min_keyword_length = 3
  let g:neocomplete#lock_buffer_name_pattern = '\*ku\*'
  let g:neocomplcache_enable_fuzzy_completion=0
  
  Bundle 'ervandew/supertab'
  set omnifunc=syntaxcomplete#Complete
  "au FileType python set omnifunc=pythoncomplete#Complete
  autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
  autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
  autocmd FileType css set omnifunc=csscomplete#CompleteCSS
  set completeopt=menu
  let g:SuperTabDefaultCompletionType="context"
  " to do text select via j/k
  inoremap &lt;expr&gt; j ((pumvisible())?("\&lt;C-n&gt;"):("j"))
  inoremap &lt;expr&gt; k ((pumvisible())?("\&lt;C-p&gt;"):("k"))
  
  Bundle 'davidhalter/jedi-vim'
  let g:jedi#popup_select_first = 0
  let g:jedi#auto_vim_configuration = 1
  let g:jedi#use_tabs_not_buffers = 1
  let g:jedi#completions_enabled=0
  let g:jedi#goto_assignments_command = "&lt;leader&gt;g"
  let g:jedi#goto_definitions_command = "&lt;leader&gt;d"
  let g:jedi#documentation_command = "K"
  let g:jedi#usages_command = "&lt;leader&gt;n"
  let g:jedi#completions_command = "&lt;C-Space&gt;"
  let g:jedi#rename_command = "&lt;leader&gt;r"
  let g:jedi#show_call_signatures = "1"
  au FileType python setlocal completeopt-=preview
  </code></pre>