adjusted visits.py to work on Wikimedia Labs