add correct python style
add if block for autocmd
update