Hi Paul and everyone,
Thanks so much for the feedback. So, I tried saving the script on Notepad, copying from the "#!/usr/bin/env python" line all the way down. Saved it to my local machine as portvlan.py.
Then I tried to tftp it using your command:
tftp -v vr-d -g -r portvlan.py
It tells me it's downloading the file to the switch. However, it fails due to a timeout error, and I'm not sure where I'm going wrong, hoping one of you guys can put some eyes on this and let me know where I messed up.
Thanks!