fix for pyinstaller build. AttributeError: 'module' object has no attribute 'reduce_socket'