oauth2client looks like a the one. I have never used this previously but looks promising.
The following is from my own experience and is not related to matillion -
Please note that the default OAuth workflow requires the user to click on an authorisation link and then obtaining the Access/Refresh token. However, user-intervention may not be required if you generate the Access token yourself using the OAuth playground.
Also look into service accounts that may be suitable when working with web applications like matillion.