Initial commit. Taken from
http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/