replying to this after like 2-3 months but remembered that you needed some parser in Python. Well, not aiding your problem, just wondering how classically a parser is written in Python.
I had a project now where I wrote a pipeline that's basically ran with a function that takes the input arguments and runs the pipeline accordingly, but near the end my boss asked me to make it able to run it from command line. So I created a parser() function which is run at the top of my __main__ function:
A,B,C,kwargs = parser()