In [1]: import os
In [2]: import torch
In [3]: os.system('vim av.txt')
https://www.librehat.com/category/os/linux/