It would be great to expand this out so that it's several if-else blocks instead of a python one-liner.  It's kinda neat to be able to write these but for someone to read and have to modify it later can be very, very intimidating.  We're writing python and not perl after all ;-) 