some fixes in site_tests.py

1) I fixed a depracated method and replaced newer one
2) using pyflakes I removed unused imports
3) changed a variable to fit in pyflakes

Change-Id: Ibb3f7f82c7b37091770098619902145e667a2d3c
Merge "some fixes in site_tests.py"