modified dhcpd.py

updated dhcpd.py to meet style guidelines outlines in previous commit

fixed minor errors and hard-coded bugs