def authorization(ctx,token):
    """
    Fill authorisation and User-Agent headers and return the session

    :param ctx: context for passing the objects
    :param token: GitHub token
    :return: session with filled headers (requests.session)
    """
    session = ctx.obj['session']
    session.headers = {'User-Agent': 'Python'}
    def token_auth(req):
        req.headers['Authorization'] = 'token ' + token
        return req
    session.auth = token_auth
    return ctx.obj['session']