Revert "Moved from sockets to subprocess"

This reverts commit 33042fca329842c4631d60f14bb13771958e6b1c.