Here are some different ways that you can use Metview's Python interface. Make sure you have set up your environment first.
Text editor and command line
Perhaps the simplest - just use any text editor to edit the Python code and run it from the command line, e.g.
python3 my_metv_python_script.py