I have multiple codes in Python and I want you to convert each code to multithre