I guess you need a while
loop here:
import os
root = raw_input("Where is the web root? "
while not os.path.isdir(root):
print "Directory not found, try again"
root = raw_input("Where is the web root? ")
print "Using %r" % (root)
#or do something else with root here