Beginnings of private subdomain test.

See also https://codereview.appspot.com/110690043/.

@eranmes
To guarantee out is closed after the function, since we're using Python 2.6 (or newer) everywhere, you could do:
with open(out, "w+") as out:
  for i in ins:
     ...