title: Python3 json output values to file line by line only if other fields are greater than value
body: <p>I have retrieved remote json using urllib.request in python3 and would like to to dump, line by line, the value of the IP addresses only (ie. ip:127.0.0.1 would be 127.0.0.1, next line is next IP) if it matches certain criteria. Other key values include a score (one integer value per category) and category (one or more string values possible). </p>
  
  <p>I want to check if the score is higher than, say 10, AND the category number equals a list of one OR more values. If it fits the params, I just need those IP addresses added line by line to a text file. </p>
  
  <p>Here is how I retrieve the json:</p>
  
  <pre><code>ip_fetch = urllib.request.urlopen('https://testonly.com/ip.json').read().decode('utf8')
  </code></pre>
  
  <p>I have the json module loaded, but don't know where to go from here. </p>
  
  <p>Example of json data I'm working with, more than one category:</p>
  
  <pre><code>   "127.0.0.1" : {
        "Test" : "10",
        "Prod" : "20"
     },
  </code></pre>