<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_account(self, **kwargs):
 """Update details of account associated with current API key. :param str address_line1: Postal address line 1. :param str address_line2: Postal address line 2. :param str city: The city part of the postal address. :param str display_name: The display name for the account. :param str country: The country part of the postal address. :param str company: The name of the company. :param str state: The state part of the postal address. :param str contact: The name of the contact person for this account. :param str postal_code: The postal code part of the postal address. :param str parent_id: The ID of the parent account. :param str phone_number: The phone number of the company. :param str email: Email address for this account. :param list[str] aliases: List of aliases :returns: an account object. :rtype: Account """

        api = self._get_api(iam.AccountAdminApi)
        account = Account._create_request_map(kwargs)
        body = AccountUpdateReq(**account)
        return Account(api.update_my_account(body))