Вы можете использовать multiprocessing.Pipe или multiprocessing.Queue для отправки данных в разные потоки и процессы в python.
Реализация Pipe будет примерно такой
from multiprocessing import Pipe
def one(connA):
while True:
a = data1
connA.send([a])
something gonna here with var b from thread two
def two(connB):
while True:
b = connB.recv() #receives [a] from thread one
connB.send([b]) #send [b] to main thread
something gonna here
def main():
A,B=Pipe()
th1 = Thread(target=one,args=(A))
th2 = Thread(target=two,args=(B))
th1.start()
th2.start()
something gonna here with var a and var b
b=A.recv() # receive var b from