As with SAS, the Python community is strong and helps each other improve their Python code. I look forward to improving my Pythonic skills and working with you in the community. The improvements suggested here show me that I've got a lot of work to do in changing my coding paradigm. I've been programming in SAS for so long that it's going to take a while to start thinking in Python. It's not unlike learning to write with your non-dominant hand.