replace '%s' in the string '%s %s' with response.status_code and response.reason_phrase, respectively, substitute it for status.
status = '%s %s' % ( response . status_code , response . reason_phrase )