Cast site_id to int
Sorry, no more long in Python 3
Hi pyflakes, stop nagging, please!
Revert to isinstance check
Merge pull request #3140 from yakky/feature/site_id

Cast site_id to int