Authentication without Web Interface

I have been tinkering with the API using python SDK and it seems that in the current scheme of authentication, a session is first created where you click on a web interface to obtain a auth_code

We then encrypt the auth_*code** and then obtain *access_token* which can then be used.*

My question is if it is possible to authenticate without going through the web interface using just Python code without using something like selenium?