Python script to test web urls