Fixed error in get_sites.  

The output of get_sites is called `output`, but in the SiteName section the variable created is `output2`, so I've changed the name back.