Implementing threading will significantly increase the performance of the program. I'll use concurrent.futures module to implement threading.