old_contents: details_source = './source/details/'
  xml_source     = './source/raw_xml/'
  term_dest      = './courses/terms/'
  course_dest    = './source/courses/'
  info_path      = './courses/info.json'
  mappings_path  = './related-data/generated/'
  handmade_path  = './related-data/handmade/'
  
  
  def find_details_subdir(clbid):
  	str_clbid = str(clbid).zfill(10)
  
  	n_thousand = int(int(clbid) / 1000)
  	thousands_subdir = (n_thousand * 1000)
  
  	return str(thousands_subdir).zfill(5) + '/' + str_clbid
  
  
  def make_course_path(clbid):
  	clbid = str(clbid).zfill(10)
  	course_path = course_dest + find_details_subdir(clbid) + '.json'
  	return course_path
  
  def make_html_path(clbid):
  	clbid = str(clbid).zfill(10)
  	return details_source + find_details_subdir(clbid) + '.html'
  
  def make_xml_term_path(term):
  	return xml_source + str(term) + '.xml'
  
new_contents: details_source = './source/details/'
  xml_source     = './source/raw_xml/'
  term_dest      = './courses/terms/'
  course_dest    = './source/courses/'
  info_path      = './courses/info.json'
  mappings_path  = './related-data/generated/'
  handmade_path  = './related-data/handmade/'
  
  
  def find_details_subdir(clbid):
  	str_clbid = str(clbid).zfill(10)
  
  	n_thousand = int(int(clbid) / 1000)
  	thousands_subdir = (n_thousand * 1000)
  
  	return str(thousands_subdir).zfill(5) + '/' + str_clbid
  
  
  def make_course_path(clbid):
  	clbid = str(clbid).zfill(10)
  	return course_dest + find_details_subdir(clbid) + '.json'
  
  def make_html_path(clbid):
  	clbid = str(clbid).zfill(10)
  	return details_source + find_details_subdir(clbid) + '.html'
  
  def make_xml_term_path(term):
  	return xml_source + str(term) + '.xml'
  
subject: Remove the allocation of a variable in make_course_path