new_contents: #!python
  
  import urllib2
  import json
  
  outPath = "modules.json"
  
  if __name__ == "__main__" :
  	try:
  		result = urllib2.urlopen("https://api.github.com/users/dofmod/repos")
  	except urllib2.HTTPError:
  		print("Repositories request error")
  		exit()
  
  	repositories = json.loads(result.read())
  	modsInfos = []
  	for repository in repositories:
  		if repository["name"] == "MarketPlace":
  			continue
  
  		try:
  			result = urllib2.urlopen("https://raw.githubusercontent.com/dofmod/{}/master/mod.json".format(repository["name"]))
  		except urllib2.HTTPError as error:
  			if error.code == 404:
  				print("No mod.json file in the repository {}".format(repository["name"]));
  				continue
  
  			print("Repository {} request error".format(repository["name"]))
  			continue
  
  		modsInfos.append(json.loads(result.read())[0])
  
  	if len(modsInfos):
  		with open(outPath, "w") as outFile:
  			outFile.write(json.dumps(modsInfos))
  
  
  
subject: Add update script