What happened is,
In Python 3.x, the print statement is changed to print functions.
While Python 2.x will fetch expected results with print "Hello World", in Python 3.x you need to use print("Hello World")
So in your code,
You should use print( json.dumps(evaluate(), indent=4) )