added python daemon to setup
added daemon class and fixed file descriptors