ex4 for python by example self class