Potentially, but you might have to reimplement a number of things. You could also look at building off of one of the other clients, including one of the other Python clients.
It's possible that one of them will be more conveniently extensible for your purposes.