I would change this to \url{http://docs.python.org/2/library/itertools.html}
If I'm reading a printed version, seeing the presence of a hyperlink is next to useless.