write Python module to check url validity