Python daemon class.