small fix keyids.py