It seems the mediawiki API has changed and this fixes it