What if it's a tuple? Any idea what the Pythonic way of doing this is?