autocmd python main function