Secure URL tests for Python