Change Solvmedia to Solvemedia
Replace range with xrange