I'm pretty new to Python, and though I'm sure I could handle this in some other manner, I'm thinking there's probably some nice pythonic approach to the following problem. Would anyone care to ...