def METHOD_NAME(self, house, type='cons', range_start=0):
    house_posts = [p for p in self.posts.values() if p['organization_id'] == house]
    if house_posts:
        id = max(int(p['id'].replace('uk.org.publicwhip/%s/' % type, '')) for p in house_posts)
    else:
        id = range_start
    return 'uk.org.publicwhip/%s/%d' % (type, id)