Fixed imports in `socks.py`.