How to run parallel process along with QProcess thread

I have started a backend script using self.p.start…! I am also printing the 4 types of logs status on a runtime on the GUI.
Now I want to run a function on the front end which waits for a file to be available at a given path, post which the file needs to be loaded on the GUI.
When I run the function along with the backend, the runtime logs do not get printed but get dumped all at once when the file is available.
start_process() : function which starts the backend script.
searchforJsonfile(): function which waits and then loads the file on GUI.
I want to run both the above functions on a click of a button. When I do the same, the above explained phenomena happens. How can I accomplish both the needs in pyqt?