As far as your question maybe someone can think of something more pythonic.  I can't think of that atm.  It's probably better to fail in a dramatic fashion here.