allow wrapped functions to take keyword arguments

I don't know if this an acceptable modification to you, but this version allows functions wrapped with "wrap" to have keyword arguments.