Hi,
> sudo apt install python
Very honestly I am not sure if this is best idea.
As part of this install bunch of links is going to be reverted from python3 to python 2 as part of the installation contains 'python-is-python2'
So while perhaps good for packetdrill it may mess up life for other python3 scripts immediately if they call python counting on default use of 'python-as-python3'.
Even if one tries to install python2 it defaults to python2.7 in which "import commands" has been obsoleted post python2.6.
IMHO the best will be to convert all python code to python3 and avoid this issue for good.
Cheers,
R.