'Generate a gPXE config'

def gpxe(self, profile=None, system=None, mac=None, **rest):

    self.__xmlrpc_setup()
    if ((not system) and mac):
        query = {'mac_address': mac}
        if profile:
            query['profile'] = profile
        found = self.remote.find_system(query)
        if found:
            system = found[0]
    data = self.remote.generate_gpxe(profile, system)
    return (u'%s' % data)
