Imported socket into dpy.py