continuous threaded data acquisition in python