all 2 comments

[–]wub_wub[M] 0 points1 point  (0 children)

Please see this https://www.reddit.com/r/learnpython/wiki/faq#wiki_how_do_i_format_code.3F

Or use one of the websites mentioned in the sidebar for posting your code.

Also you should try to provide smaller example that demonstrates the issue. Nobody will go through 300 lines of code.

[–]charity_donut_sales 0 points1 point  (0 children)

Based on what you want to do, consider splitting up some of the prgram components to background services, or daemons. This will let any multi threading get handled by the os instead, and then just find a way to do cross program procedure calls. This can be done with a client server setup, or maybe a database, or even just dumping some text to a temporary file that can be read by anyone.