Licence header added to tools/get_auth_token.py

Imports in this file refactored also

Fixes: bug #1203408

Change-Id: Ibb4aaa271d3e0738c0c1d114efdefcba856fb190