Updated PUT function with Gremlin

Added calls to the gremlin function before sending packets in PUT_func.