converted the python script to vimscript