daemonize
daemonize is a library for writing system daemons in Python.
Netcat as a python library
Properly set up UNIX daemon processes