Abstracted DHCP functions to separate python file