Change your
def main():
print hello(sys.argv[1])
to
def main():
hello(sys.argv[1])
You are explicitly printing the return value from your hello method. Since you do not have a return value specified, it returns None
which is what you see in the output.