mwclient is a Python framework to interface with the MediaWiki API.