is there a python equivalent to memcpy,"socket = socket.socket(('127.0.0.1', port))"