Extensive mocking for the docs building in order to get automodule to work with Qt4 on Readthedocs. In hindsight might be easier to self-host.