one self for class in class
<p>How using one self instence in few subclasses
have some code like this:</p>

<pre><code>class User(object):

     def __init__(self)
         self.user_session = Session()

     def wallet_sum(self):
         self.user_session.get('current wallet sum')

     class Action(object):

         def __init__(self):
             self.user_session = User.user_session 

         def buy_dog(self):
             self.user_session.post('buy_dog')

     class Listing(object)

         def my_dogs(self):
             self.user_session.get('all_my_dogs')

user = User()

user.Action.buy_dog()

user.Listing.my_dogs()
</code></pre>

<p>i want to create one User object with one self and do some actions with it</p>

<p>i try:</p>

<pre><code>user.Action().my_dogs()
AttributeError: type object 'User' has no attribute 'user_session '


user.Action.my_dogs()
TypeError: Action() missing 1 required positional argument: 'self'
</code></pre>