Simple JSON parser implemented in Python