Add compatibility for Python 3.x to check_url.py