s = "alpha.Customer[cus_Y4o9qMEZAugtnW] ..."
m = re.search(r"[([A-Za-z0-9_]+)]", s)
print m.group(1)
> cus_Y4o9qMEZAugtnW
Instead of: return ("Temperature in Fahrenheit Shall Be: ", far)
You need to turn your variable to a string and then use the + operator:
return "Temperature in Fahrenheit Shall Be: " + str(far)
Source: https://stackoverflow.com/questions/55490290/python-return-statement-includes-brackets