Convert sync-wikiversions to python

Replace the sync-wikiversions script with a pure python version. Also
use the newly created task.sync_wikiversions function in task.scap.

Change-Id: I2519b61a7e87a285f791732fcc92f7404f8d5649