request = urllib.request.Request(url, data, {'Authorization': 'Basic %s' % auth,
    'Content-Type': 'application/json'})
print(urllib.request.urlopen(request).read())
Perform JIRA transition via Python REST API