Added socket and sys imports to support the Device.probe method.

Sorry, new to github.  Hopefully I'll get better at this :)