I generated this with your script and it gives me an error saying that the secret key is invalid in Authy and not recognized in Google Authenticator:
otpauth://totp/VIP%20Access:VSMT48321185?issuer=Symantec&secret=vwdg7vr0c6b330h27qmtp9848wskmt27x43zp1kjnkndadna9yqg&

I also tested this qr code by modifying it with a known working secret key and it worked fine.