Python3 interface for nested JSON