Emphasises deprecation warning in sockets module.
Fix some deprecation warnings in the uri module.