Use __repr__ instead of __str__
Add some missing mock objects needed to build pyqode.widgets doc