Replaced xrange with range.
For this, xrange was replaced by range and for imports of the own library lib.x was used instead of x.