Fix for code snippet in running.rst

Previously this raised

AttributeError: 'module' object has no attribute 'socket'
Merge pull request #45 from joerick/patch-1

Fix for code snippet in running.rst