Make the library be a ModuleType subclass so that on PyPy it is optimized for the fact that the attribtues are generally never re-assigned.
Created originally on Bitbucket by alex_gaynor (Alex Gaynor)
Was already merged in Bitbucket before import, marked as merged by the import user