test for site in python