https://docs.python.org/3/library/fcntl.html#fcntl.lockf
https://stackoverflow.com/questions/32592698/how-to-lock-a-directory-between-python-processes-in-linux
https://www.google.com/search?q=Python+with+lock+file&newwindow=1&sxsrf=AOaemvJCtZ_ke5INsJgxiRy8HelHU9qijQ%3A1641208573566&ei=_drSYYyEItaTr7wP0sCg8AI&ved=0ahUKEwjM9p2wupX1AhXWyYsBHVIgCC4Q4dUDCA4&uact=5&oq=Python+with+lock+file&gs_lcp=Cgdnd3Mtd2l6EAMyBAgAEB4yBggAEAgQHjoHCAAQRxCwA0oECEEYAEoECEYYAFDmEljFGWD9H2gBcAJ4AYAB1wWIAZsPkgEJMy0yLjAuMS4xmAEAoAEByAEBwAEB&sclient=gws-wiz
https://stackoverflow.com/questions/23754086/mulithreading-environment-and-modules-like-pickle-or-json
https://coderedirect.com/questions/530770/keras-pickle-safe-what-does-it-mean-to-be-pickle-safe-or-alternatively-n
https://towardsdatascience.com/multiprocessing-and-pickle-how-to-easily-fix-that-6f7e55dee29d
https://medium.com/@jwnx/multiprocessing-serialization-in-python-with-pickle-9844f6fa1812
https://newbedev.com/write-thread-safe-to-file-in-python