1class foo():
2 def __init__(self, kind=None):
3 self.kind = kind
4 def my_print(self):
5 print (self.kind)
6 return self
7 def line(self):
8 self.kind = 'line'
9 return self
10 def bar(self):
11 self.kind='bar'
12 return self