A simple way for Python cron tasks to exit if another process is currently running. Does not use a pidfile.
https://gist.github.com/4280136