pytdb: Allow nextkey() to be called