Takes and email and matching uid, builds a uref and fetches an access structure that looks like:

            {
              "count": 1, 
              "code": 0, 
              "ts": 1428522205, 
              "limit": 100, 
              "offset": 0, 
              "total": 1, 
              "data": [
                {
                  "granted": true, 
                  "resource": {
                    "aid": "J8MY0Bu8Xs", 
                    "rid": "RESOURCE_MONTHLY", 
                    "image_url": "/images2/default/file-document.png", 
                    "name": "Month", 
                    "description": ""
                  }, 
                  "user": {
                    "first_name": "WackoJacko", 
                    "last_name": "AndDot", 
                    "email": "dotswill@echo.net", 
                    "api_token": "CDEADBEEFcafebabe0x1337KxYzCiuIHaX0Ri3GH"
                  }, 
                  "access_id": "1VShIZzLeIod"
                }
              ]
            }

def get_access_list( self, email, uid ):
        '''
            Takes and email and matching uid, builds a uref and fetches an access structure that looks like:

            {
              "count": 1, 
              "code": 0, 
              "ts": 1428522205, 
              "limit": 100, 
              "offset": 0, 
              "total": 1, 
              "data": [
                {
                  "granted": true, 
                  "resource": {
                    "aid": "J8MY0Bu8Xs", 
                    "rid": "RESOURCE_MONTHLY", 
                    "image_url": "/images2/default/file-document.png", 
                    "name": "Month", 
                    "description": ""
                  }, 
                  "user": {
                    "first_name": "WackoJacko", 
                    "last_name": "AndDot", 
                    "email": "dotswill@echo.net", 
                    "api_token": "CDEADBEEFcafebabe0x1337KxYzCiuIHaX0Ri3GH"
                  }, 
                  "access_id": "1VShIZzLeIod"
                }
              ]
            }

        '''
        path = '/api/v3/access/list'

        # package the user
        userRef = {
            'uid': uid,
            'email': email,
            'timestamp': int(time.time())
        }
        serialized = json.dumps(userRef)#, indent=2)
        user_ref = utinypass.crypto.aesencrypt(self.private_key, serialized)

        # prepare the request        
        data = {
            'aid': self.app_id,
            'user_ref': user_ref, 
        }

        # doit
        r = requests.get( self.base_url + path, data=data )

        if r.status_code != 200:
            raise ValueError( path + ":" + r.reason )

        access_struct = json.loads( r.content )

        return access_struct