a simple demon in python