<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def login_with_password(self, username, password, limit=10):
 """Deprecated. Use ``login`` with ``sync=True``. Login to the homeserver. Args: username (str):
 Account username password (str):
 Account password limit (int):
 Deprecated. How many messages to return when syncing. This will be replaced by a filter API in a later release. Returns: str: Access token Raises: MatrixRequestError """

        warn("login_with_password is deprecated. Use login with sync=True.",
             DeprecationWarning)
        return self.login(username, password, limit, sync=True)