check version instead of try/except to import url functions

this way we don't trigger deprecation warnings
bundled six