def get_project_key_for_id(self, project_id):
    if (not project_id):
        return ''
    projects = self.get_projects_list()
    for project in projects:
        if (project['id'] == project_id):
            return project['key'].encode('utf-8')
    return ''
def get_project_key_for_id(self, project_id):
    if (not project_id):
        return 
    projects = self.get_projects_list()
    for project in projects:
        if (project['id'] == project_id):
            return project['key'].encode('utf-8')
    return 