python-software-properties is the dependency of os package repository installer
replace xrange with range
except Exception: => except