rhqapi: use k instead of key
removed 'key' variable from risky places

when client iterates over our object, he might use 'key' parameter. In our
code we reassign it to something he does not expect. We should consider
using more safe local variable names (for example starting with _)