Switched to range instead of xrange for manual.py example, since that works in Python 2 and 3.