Don't Repeat Yourself OPTion parsing: decorate functions classes to be called from the commandline or python code.