1 min readSep 27, 2017
Take a look at the behave package, looks similar to what you are trying to implement. Although in my opinion, moving away from pure python syntax into DSLs just adds another layer of needless implementation complexity and potential bugs.