Currently, mvftoms.py is a script i.e. the associated code is not part of the katdal module itself so it cannot be imported and executed without the use of e.g. the subprocess module. It should be relatively easy to accomplish with a Python CLI tool like click or typer. I would be willing to submit a PR to add this functionality but wanted to check if such a PR would be welcome. I don't know how constrained the dependencies are.