gwok,
Hmmm, not sure what the error is, the only thing I can think of is maybe when you copied and pasted it the formating got messed up, maybe a line break was inserted or something. Anyway I've uploaded the actual .py file to the stash..., here.
https://stash.reaper.fm/14551/Copy2new.py
Let me know if you still get any errors.