I just typed the following code in Blender.app's text window which uses python 3.4 and got this:
Note this is just dummy Leap data, not real.
frame = {
'id':2343212,
'hands':2,
'fingers':3,
'tools':0,
'gestures':0,
'timestamp':1256934552,
}
print("frame id: %d" % frame['id'])
print("hands:%d" % frame['hands'])
print("fingers: %d" % frame['fingers'])
print("tools: %d" % frame['tools'])
print("gestures: %d" % frame['gestures'])
print("timestamp: %d" % frame['timestamp'])
print("Frame id: %d, timestamp: %d, hands: %d, fingers: %d, tools: %d, gestures: %d" % (frame['id'], frame['timestamp'], frame['hands'], frame['fingers'], frame['tools'], frame['gestures']))
# AS RUN:
frame id: 2343212
hands:2
fingers: 3
tools: 0
gestures: 0
timestamp: 1256934552
Frame id: 2343212, timestamp: 1256934552, hands: 2, fingers: 3, tools: 0, gestures: 0