'kill network processes are keeping the interface busy'

@staticmethod
def kill_procInterfaceBusy():

    willkill = ('wpa_supplicant', 'dhclient')
    proc = Popen(['ps', '-A'], stdout=PIPE)
    (out, err) = proc.communicate()
    try:
        for line in out.splitlines():
            for name in willkill:
                if (name in line):
                    pid = int(line.split()[0])
                    kill(pid, signal.SIGKILL)
    except Exception as e:
        print '[!]    Error:    find    process    network:    {}'.format(str(e))
