Drop the version-specific check nonsense and go with the import fallback idiom. Even though Python 3.3 will allow you to import xml.etree.cElementTree directly, its marked as deprecated, so we might as well plan for the future.