def get_authentication_scorm(lms_url):
    lms_path = urlparse.urlparse(lms_url).path or '/'
    extension = '/'
    if lms_path in 'gateway4labs/':
        extension = lms_path[lms_path.rfind('gateway4labs/lms/list') + len('gateway4labs/lms/list'):]
        lms_path  = lms_path[:lms_path.rfind('gateway4labs/')]

    content = get_scorm_object(True, lms_path=lms_path, lms_extension=extension)
    return Response(content, headers = {'Content-Type' : 'application/zip', 'Content-Disposition' : 'attachment; filename=authenticate_scorm.zip'})
dataset/ETHPy150Open gateway4labs/labmanager/labmanager/scorm.py/get_authentication_scorm/swapped operands of `in`