title: Set tab as 2 spaces in vimrc, but still set to 4 spaces when editing python files
body: <p>I've set tab to equal 2 spaces in my vimrc. This works when I edit java files, but for some reason when I edit python files, tab is set to 4 spaces instead. </p>
  
  <p>My vimrc:</p>
  
  <pre><code>filetype plugin indent on
  syntax on
  
  set backspace=indent,eol,start
  
  set expandtab
  set tabstop=2
  set shiftwidth=2
  set softtabstop=2
  set showtabline=2
  
  set number
  set showcmd
  set cursorline
  set wildmenu
  set lazyredraw
  set showmatch
  
  
  call plug#begin('~/.vim/plugged')
  
  Plug 'scrooloose/nerdtree'
  Plug 'drewtempelmeyer/palenight.vim'
  Plug 'NLKNguyen/papercolor-theme'
  Plug 'rakr/vim-one'
  Plug 'morhetz/gruvbox'
  Plug 'tpope/vim-commentary'
  Plug 'ajh17/VimCompletesMe'
  Plug 'sheerun/vim-polyglot'
  
  call plug#end()
  
  highlight ColorColumn ctermbg=gray
  set colorcolumn=81
  autocmd BufNewFile,BufRead * setlocal formatoptions=croqtn textwidth=80
  
  set t_Co=256
  set term=xterm-256color
  let g:gruvbox_contrast_dark='dark'
  colorscheme gruvbox
  set background=dark
  
  map &lt;C-x&gt; :NERDTreeToggle&lt;CR&gt;
  noremap &lt;TAB&gt; &lt;C-W&gt;w  
  
  " autoclose matching quotes, braces and parentheses
  inoremap {&lt;CR&gt; {&lt;CR&gt;}&lt;ESC&gt;O
  inoremap {;&lt;CR&gt; {&lt;CR&gt;};&lt;ESC&gt;O
  inoremap jj  &lt;Esc&gt;
  inoremap &lt;Esc&gt; &lt;Nop&gt;
  inoremap &lt;expr&gt; &lt;CR&gt; pumvisible() ? "\&lt;C-y&gt;" : "\&lt;C-g&gt;u\&lt;CR&gt;"
  inoremap &lt;C-y&gt; &lt;C-o&gt;h
  inoremap &lt;C-u&gt; &lt;C-o&gt;l
  </code></pre>