A simple class to make python script run as daemon