# http_body = '\r\n'.join(data)
http_body = '\r\n'.join(str(v) for v in data)
# buld http request
req = http_url
# header
req.add_header('Content-Type', 'multipart/form-data; boundary=%s' % boundary)
req.add_data(http_body)
try:
# post data to server
resp = urlopen.urlopen(req, timeout=5)
# get response
qrcont = resp.read()
print ('\n')
print (qrcont)
except urlopen.HTTPError as e:
print (e.read())