location = result.headers["location"] \
if "location" in result.headers else "<null>"
print "POST {} {} - Location: {}".format(
location = result.headers["location"] \
if "location" in result.headers else "<null>"
print "POST {} {} - Location: {}".format(