Removed Py3k dependency

os.nodename is Py3k only, so I found a way to return the computer
name in either Python 2 or Py3k.

I think I got a speed boost out of it, but I'm not sure why.