I am afraid I don't understand your question. Would you mind elaborating it?

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is normally used with javascript in web browers and in web services (like geonames) which are consumed by web browsers. Yahoo offers several JSON webservices to access their search engine.
The geonames server is programmed in java, this is even better than Python, isn't it