highlight ExtraWhitespace ctermfg=white ctermbg=red guibg=red guifg=white
autocmd! filetype python match ExtraWhitespace /\(\s\+$\|^\s*\t\|,[^ ]\|[;]$\|#[^ ].\|def [A-Z]\|class [a-z]\)/
autocmd BufWinEnter filetype python match ExtraWhitespace /\(\s\+$\|^\s*\t\|,[^ ]\|[;]$\|#[^ ].\|def [A-Z]\|class [a-z]\)/
autocmd BufWinLeave * call clearmatches()

set et
set sw=4
set ai
set smarttab
set textwidth=76
set colorcolumn=76

