I think you should get rid of this 'data' dictionary entirely and just use args.get('--name') and args.get('--note respectively'). I'm guessing this came from referencing code that has a bit more complex usage that required that.