Upstream mediawiki is about to define the concept of "partial block", see T2674: Allow users to be blocked from editing a specific article or all articles inside a namespace. This will involve lot of API changes.
When all the changes finally merged, pywikibot will have to handle that.