Fix calling Stored Procedure with kwargs

Fixes issue with calling a StoredProcedure with kwargs. The for loop depended on the variable 'argc' which was not declared. This declares the variable, and updates the handling of current_word in the loop to handle instances where the number of items in kw is less than the number of arguments the stored procedure requires.