Slightly less dirty hack, this time with a dict instead of a string for HMAC_KEYS