add memo for py_socket