Fix for code snippet in running.rst

Previously this raised

AttributeError: 'module' object has no attribute 'socket'