Basic (username/password) authentication is no longer supported on office365.com. You need to set up OAuth, as described in https://ecederstrand.github.io/exchangelib/#impersonation-oauth-on-office-365