What would be the most pythonic way to schedule a function to run periodically as a background task? There are some ideas here, but they all seem rather ugly to me. And incomplete.
The java Timer class has a very complete solution. Anyone know of a similar python class?