@classmethod
def from_dict(cls, data):
    'Load a profile from a dictionary'
    profile = cls()
    for (k, v) in data.iteritems():
        if (k != 'jobs'):
            profile.__setattr__(k, v)
    if ('jobs' in data):
        for (name, spec) in data['jobs'].iteritems():
            profile.specs[name] = cls.from_dict(spec)
    return profile
Load a profile from a dictionary
@classmethod
def from_dict(cls, data):
    
    profile = cls()
    for (k, v) in data.iteritems():
        if (k != 'jobs'):
            profile.__setattr__(k, v)
    if ('jobs' in data):
        for (name, spec) in data['jobs'].iteritems():
            profile.specs[name] = cls.from_dict(spec)
    return profile