Instead of 1 or 0 why don't you return True or False...? Also, even though it's a bad habit of mine, it's considered ugly to use globals when not necessary in a function, you could simply return what you need to, try putting all these things in an array or hash "list or dictionary" and having them returned along with True or False.
>>> def is_good(word):
word.capitalize()
if word == 'Python':
return True
else:
return False
>>> wrd='C'
>>> is_good(wrd)
False
also for changing global variables:
>>> lis=[0,1,2,3]
>>>
>>> def plus1(that):
new=[]
for i in that:
i+=1
new.append(i)
return new
>>> lis
[0, 1, 2, 3]
>>> lis=plus1(lis)
>>> lis
[1, 2, 3, 4]