Having reviewed I think I agree with @dreid that using some ABCs for the binding to introspect the mode seems pretty sane. Sorry for getting it wrong the first time!