from .key import buildKey def buildObject(keys, outputs): object = {} for key in keys: object.update( buildKey(key, outputs), ) return object