def remap_static_url(original_url, course):
 input_url = (("'" + original_url) + "'")
 output_url = replace_static_urls(input_url, getattr(course, 'data_dir', None), course_id=course.id, static_asset_path=course.static_asset_path)
 return output_url[1:(-1)]

def remap_static_url ( original_url , course ) : input_url = ( ( "'" + original_url ) + "'" ) output_url = replace_static_urls ( input_url , getattr ( course , 'data_dir' , None ) , course_id = course . id , static_asset_path = course . static_asset_path ) return output_url [ 1 : ( - 1 ) ]
remap a url in the ways the course requires .