URL security tests for Python