Now send a request with our data.
req = urllib.request.Request(
url = api_url+'/users/'+username+'/login',
data = data)
response = urllib.request.urlopen(req)
print(response.read().decode('UTF-8'))
You should see a response ArchivesSpace in the shell.
What does the response suggest?