# coding=utf-8
import urllib


_ACCESS_TOKEN = None


def set_access_token(access_token):
    global _ACCESS_TOKEN
    _ACCESS_TOKEN = access_token


def get_access_token():
    return _ACCESS_TOKEN


def create_url_get_code(client_id, redirect_uri, display="page", scope=None, response_type="code", version=None, state=None):
    url = "https://oauth.vk.com/authorize"
    params = {
            "client_id":client_id,
            "redirect_uri": redirect_uri,
            "display": display,
            "response_type": response_type
    }

    if scope:
        params['scope'] = scope

    if version:
        params['v'] = version

    if state:
        params['state'] = state

    return u"{url}?{params}".format(url=url, params=urllib.urlencode(params))


# def get_access_token(client_id, client_secret, redirect_uri, code):
#     pass



@@ -762,17 +762,18 @@
 )%0A%0A%0A
-# 
 def 
-get
+create
 _acc
@@ -829,18 +829,16 @@
  code):%0A
-# 
     pass
@@ -838,10 +838,8 @@
    pass%0A
-%0A%0A

Rename "get_access_token" => "create_access_token"