import socket. fixes issue when socket isn't defined.
Alphabetical order.
Merge pull request #6 from zachlatta/patch-1

import socket. fixes issue when socket isn't defined.