Fixing function decorator passing modified kwargs to callee