def __init__(self, api_key_or_email, password=None):
        """A Puush Account can be instantiated either with API key or
        e-mail and password.
        
        Parameters:
            * api_key_or_email: API key if it's the only argument, e-mail if
              password parameter is present.
            * password (optional): The password for the Puush account if
              api_key_or_email is an e-mail address.
        """
        # E-mail and password authentication
        if password is not None:
            email = api_key_or_email
            self.is_premium, self._api_key, _, _ = auth(email, password)
        # Direct API key authentication
        else:
            api_key = api_key_or_email
            self.is_premium, self._api_key, _, _ = auth(api_key)
def __init__ ( self , api_key_or_email , password = None ) : if password is not None : email = api_key_or_email self . is_premium , self . _api_key , _ , _ = auth ( email , password ) else : api_key = api_key_or_email self . is_premium , self . _api_key , _ , _ = auth ( api_key )
A Puush Account can be instantiated either with API key or
        e-mail and password.
        
        Parameters:
            * api_key_or_email: API key if it's the only argument, e-mail if
              password parameter is present.
            * password (optional): The password for the Puush account if
              api_key_or_email is an e-mail address.