Adds log batching to RemoteExecutionThread.py