Code:
class dog:
def dog_set_name(self, name):
self.name = name
def dog_eat(self, eat):
self.eat = eat
dog = dog()
dog.dog_set_name("Max")
dog.dog_eat("Dog Food")
# Now you can apply what you have just done.
a = dog.name,'eats',dog.eat
print " ".join(a)