Removed mocks for unused libraries

These mocks were all for legacy code.
Retain docstring if mocked object is used as a decorator

This prevents mocked objects that are used as decorators from obscuring
the docstring of the decorated function/method.