You don't need these global declarations. `tincan_process` and `run_event` should already be in scope. The `global` keyword is simply used to override potentially ambiguous cases where the variable is reassigned inside the function scope (`global` would then clarify that it is just a reassignment, not a new definition). Since you're not reassigning the values, you don't need these two lines.

Use of the `global` keyword is typically considered "bad practice" anyways, as there's often a better way to restructure your code to avoid using it.