Hmmm, Yes, ImportError raised only when we can't find the module, here is not.

ImportWarning is suitable, but it's new in 2.5

Well, I agree with your EnvironmentError.

BTW, why is 2.4? Is there some reason? I have been thinking it's 2.6.