Since fetch_url already take care of the exception, the try/except clause is no longer working, so replace it with proper status checking, thus permitting to remove urlib2 from the import list.