'Return a list of certificate identifiers that are already in use for this course'

@staticmethod
def get_used_ids(course):

    if ((not course.certificates) or (not course.certificates.get('certificates'))):
        return []
    return [cert['id'] for cert in course.certificates['certificates']]
