Import plugin attributes in module definition, to fix "'module' object has no attribute 'register'" error.