Iterative JSON parser with Pythonic interface