Executing python3 -m http.server 8080
inside the directory this file is located in and opening http://localhost:8080/ provides you with different options. It also let's you log in to OSM and to authorize the application mentor. It let's you log out of mentor (it removes just the cookie. mentor revokes the access token immediately after log in and receiving user details so it is already removed before you log out from mentor)
Note: Initiating the login won't open the OAuthorisation from OpenStreetMap. Instead it provides you with the url you can use to authorize mentor.
Note: Please revoke the authorisation manually by going to the oauth settings resisting in your OSM account profile.
Execute python3 region.py
for a demonstration how the 'region' module works.