For this awesome features you should use the marvelous library vim-pythonx and ultisnips.
Plug 'sirver/ultisnips'
let g:UltiSnipsUsePythonVersion = 2
let g:UltiSnipsSnippetDirectories = [
\ $HOME . '/.vim/UltiSnips/',
\ $HOME . '/.vim/bundle/snippets/'
\]
let g:UltiSnipsEnableSnipMate = 0
augroup textwidth_for_snippets
au!
au FileType snippets set textwidth=999
augroup end
Plug 'reconquest/vim-pythonx'
Plug 'reconquest/snippets'
imap <C-F> t<TAB>.
Please fire an github issues if you found a bugs in snippets.