Include `.local` in the list of top-level domains

Picking up where #1508 left off, I noticed that one of the examples from a user still wasn't working: vnc://hostname.local/

So, now it works.

I changed the Python script around quite a bit, too. :alien: