Can you try this code and say me what print output
sites = [site + 'index.php/1', site + 'index.php/2']
for url in sites:
try:
website = urllib2.urlopen(url)
except URLError as e:
print '{}: {}'.format(url, repr(e))
else:
if website.code == 200:
website = website.read().lower()
print '\n:)' if 'registration' in website else '\n:/'
print '\n:)' if 'there is no form' in website else '\n:/'
else:
print '{}: code {}'.format(url, website.code)