old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  from sbbrowser import SubjectsBrowser
  from grades import GradeCalculator, Grade
  
  # Command line tool to calculate your grades
  targetURL = 'http://cipcnet.insa-lyon.fr/scol/cours_eleve'
  
  subjectsBrowser = SubjectsBrowser(targetURL, raw_input("Username? "), raw_input("Password? "))
  subjects = subjectsBrowser.getResult()
  
  gradeCalculator = GradeCalculator()
  
  for s in subjects:
  	subjectName = s[0]
  	subjectCoeff = float(s[1])
  	while True:
  		try:
  			subjectGrade = float(raw_input(subjectName + "? "))
  		except ValueError:
  			print("Wa baraka")
  			continue
  		break
  	gradeCalculator.addGrade(Grade(subjectGrade, subjectCoeff))
  print "Your grade : " + str(gradeCalculator.getFinalGrade())
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  from sbbrowser import SubjectsBrowser
  from grades import GradeCalculator, Grade
  
  # Command line tool to calculate your grades
  targetURL = 'http://cipcnet.insa-lyon.fr/scol/cours_eleve'
  
  username = raw_input("Username? ")
  password = raw_input("Password? ")
  subjectsBrowser = SubjectsBrowser(targetURL, username, password)
  subjects = subjectsBrowser.getResult()
  
  gradeCalculator = GradeCalculator()
  
  for s in subjects:
  	subjectName = s[0]
  	subjectCoeff = float(s[1])
  	while True:
  		try:
  			subjectGrade = float(raw_input(subjectName + "? "))
  		except ValueError:
  			print("Wa baraka")
  			continue
  		break
  	gradeCalculator.addGrade(Grade(subjectGrade, subjectCoeff))
  print "Your grade : " + str(gradeCalculator.getFinalGrade())
subject: Fix raw_input issue