normal way to debug an error within try/except block is to print error msg verbatim or disable the try/except block temporary until you are certain the block works.
In this case the problem is with line#17 and line#22 -> long flags should be '--parse' and '--string'
In this case the problem is with line#17 and line#22 -> long flags should be '--parse' and '--string'