Lichess API like functions that are not part of the official API.
import slapi
lila2 = slapi.login("username", "password")
import slapi
result = slapi.sendmessage("recipientusername", "subject", "message", slapi.login("myusername", "password"))
import slapi
slapi.jointourney("tourneyid", slapi.login("username", "password"))
import slapi
slapi.talktourneychat("tourneyid", slapi.login("username", "password"), "message")