RESOURCE_TYPE = dict([(e[1], e[0]) for e in resource_type]+resource_type)