Have you tried to run this code? It seems that it will crash on this line, `viewkeys` is a method.