Python: How to run a def in the background
===

How can I run a python definition now, but do more stuff after a certain time. So it's kind of running the script silently in the background until certain condition is met?

Thank you