Switch xrange for range and use parenthesis on print.