Thanks, Morris, for the Python mini-lesson!

I guess one could also use try/except for the initial account access to print a nice error message rather than just having an error dump if it's a live account... Wouldn't want the code to just fix itself and forge ahead on a live account, though - bad precedent!

Regards.